New target: make clean_repos

This commit is contained in:
Joanna Rutkowska 2012-11-19 17:50:15 +01:00
parent 8ded5f9a31
commit 572f775f8f
2 changed files with 12 additions and 0 deletions

View File

@ -111,6 +111,10 @@ iso:
isohybrid build/ISO/qubes-x86_64/iso/*.iso isohybrid build/ISO/qubes-x86_64/iso/*.iso
rpm_verify build/work/revisor-install/*/qubes-x86_64/x86_64/os/Packages/*.rpm rpm_verify build/work/revisor-install/*/qubes-x86_64/x86_64/os/Packages/*.rpm
clean-repos:
@echo "--> Removing old rpms from the installer repos..."
@(cd yum && ./clean_repos.sh)
clean: clean:
rm -fr rpm/SOURCES/*.bz2 rm -fr rpm/SOURCES/*.bz2
rm -fr rpm/noarch/*.rpm rm -fr rpm/noarch/*.rpm

8
yum/clean_repos.sh Executable file
View File

@ -0,0 +1,8 @@
for repo in dom0-updates installer qubes-dom0 ; do
echo "---> Cleaning up repo: $repo..."
rm -f $repo/rpm/*.rpm
rm -f $repo/repodata/*
createrepo -q $repo
done