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:
parent
4c8f1755d9
commit
30155ba17b
2
Makefile
2
Makefile
@ -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:
|
||||
|
@ -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..."
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user