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.
This commit is contained in:
Marek Marczykowski 2013-04-28 22:36:51 +02:00
parent 4c8f1755d9
commit 30155ba17b
3 changed files with 4 additions and 1 deletions
Makefile
scripts_archlinux
scripts_fedora

View File

@ -27,7 +27,7 @@ update-repo-installer:
ln -f rpm/noarch/qubes-template-$(TEMPLATE_NAME)-$(VERSION)-$(shell cat build_timestamp_$(DIST))*.noarch.rpm $$UPDATE_REPO/rpm
prepare-repo-template:
rm -rf yum_repo_qubes/*
rm -rf yum_repo_qubes/$(DIST)
mkdir -p yum_repo_qubes/$(DIST)/rpm yum_repo_qubes/$(DIST)/repodata
clean:

View File

@ -25,6 +25,8 @@ sudo mount --bind $CUSTOMREPO $INSTALLDIR/mnt/qubes-rpms-mirror-repo
sudo ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR sh -c "cd /mnt/qubes-rpms-mirror-repo/;repo-add pkgs/qubes.db.tar.gz pkgs/*.pkg.tar.xz"
chown -R --reference=$CUSTOMREPO $CUSTOMREPO
sudo ./mnt_archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR sh -c "pacman -Sy"
echo "--> Installing qubes-packages..."

View File

@ -7,3 +7,4 @@ 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