qubes-linux-template-builder/scripts_fedora/00_prepare.sh
Marek Marczykowski 30155ba17b Fix template-repo handling - chown it and clean only current one
Without chown, normal user cannot remove it (in next
prepare-repo-template). Also fix prepare-repo-template to clean only
current repo, not all of them.
2013-04-28 22:36:51 +02:00

11 lines
267 B
Bash
Executable File

#!/bin/sh
pushd $SCRIPTSDIR
rm -f keys base_rpms
ln -sf keys_$DIST keys
ln -sf base_rpms_$DIST base_rpms
popd
createrepo -q -g $PWD/comps-qubes-template.xml yum_repo_qubes/$DIST -o yum_repo_qubes/$DIST
chown -R --reference=yum_repo_qubes/$DIST yum_repo_qubes/$DIST