15 |
exit 1 |
exit 1 |
16 |
fi |
fi |
17 |
|
|
18 |
|
# remove package that are no longer in the distro |
19 |
|
if [ "$distrel" == "7" ] |
20 |
|
then |
21 |
|
find -name 'qmail-workaround*' -print0 -o \ |
22 |
|
-name '*rkhunter*' -print0 \ |
23 |
|
| xargs -r0 rm |
24 |
|
fi |
25 |
|
|
26 |
for img in product updates |
for img in product updates |
27 |
do |
do |
28 |
if [ "$distrel" == "7" ] |
if [ "$distrel" == "7" ] |
70 |
else |
else |
71 |
createrepo --update --database --groupfile repodata/comps.xml -u "media://$(head -1 $distarch/.discinfo)" $(pwd)/$distarch/ |
createrepo --update --database --groupfile repodata/comps.xml -u "media://$(head -1 $distarch/.discinfo)" $(pwd)/$distarch/ |
72 |
fi |
fi |
73 |
sync; rm -rf $(pwd)/$distarch/.olddata |
sync; rm -rf $(pwd)/$distarch/.olddata $(pwd)/$distarch/repodata/repoview $(pwd)/$distarch/repoview |
74 |
repoview $(pwd)/$distarch/ |
repoview $(pwd)/$distarch/ |
75 |
sync; rm -rf $(pwd)/$distarch/.repodata |
sync; rm -rf $(pwd)/$distarch/.repodata |
76 |
|
|