14 |
rsync -avhHP --exclude 'product/' --exclude 'updates/' --exclude 'pkgorder.*' --exclude 'build_*' --exclude '*.jigdo/' --delete-excluded --delete /stage/${ver:0:1}/ /releases/testing/$ver/${prefix}os/ |
rsync -avhHP --exclude 'product/' --exclude 'updates/' --exclude 'pkgorder.*' --exclude 'build_*' --exclude '*.jigdo/' --delete-excluded --delete /stage/${ver:0:1}/ /releases/testing/$ver/${prefix}os/ |
15 |
if [ -f /releases/testing/$ver/${prefix}os/i386/repodata/comps.xml ] |
if [ -f /releases/testing/$ver/${prefix}os/i386/repodata/comps.xml ] |
16 |
then |
then |
17 |
createrepo --update --database --groupfile repodata/comps.xml /releases/testing/$ver/${prefix}os/i386/ |
createrepo --update --database --checksum sha --groupfile repodata/comps.xml /releases/testing/$ver/${prefix}os/i386/ |
18 |
createrepo --update --database --groupfile repodata/comps.xml /releases/testing/$ver/${prefix}os/x86_64/ |
createrepo --update --database --checksum sha --groupfile repodata/comps.xml /releases/testing/$ver/${prefix}os/x86_64/ |
19 |
fi |
fi |
20 |
|
|
21 |
ls /builds /releases /stage > /dev/null |
ls /builds /releases /stage > /dev/null |
22 |
find /builds/ /releases/ /stage/ -not -user releases -exec chown releases {} \+ \ |
find /builds/ /releases/ /stage/ -not -user releases -exec chown -h releases {} \+ \ |
23 |
, -not -group releases -exec chgrp releases {} \+ \ |
, -not -regex ".*/${prefix}\(contribs\|updates-testing\)/i386/RPMS" \ |
24 |
|
-not -group releases -exec chgrp -h releases {} \+ \ |
25 |
, -type f -\( -not -perm -664 -o -perm -002 -\) -exec chmod u+rw,g+rw,o+r,o-w {} \+ \ |
, -type f -\( -not -perm -664 -o -perm -002 -\) -exec chmod u+rw,g+rw,o+r,o-w {} \+ \ |
26 |
, -type d -\( -not -perm -2775 -o -perm -002 -\) -exec chmod u+rwx,g+rwxs,o+rx,o-w {} \+ |
, -type d -\( -not -perm -2775 -o -perm -002 -\) -exec chmod u+rwx,g+rwxs,o+rx,o-w {} \+ \ |
27 |
chgrp updates $(ls -d /releases{/,/testing}/[0-9]/${prefix}updates-testing/i386/RPMS 2> /dev/null) |
, -regex ".*/${prefix}updates-testing/i386/RPMS" -exec chgrp updates {} \+ \ |
28 |
chgrp contribs $(ls -d /releases{/,/testing}/[0-9]/${prefix}contribs/i386/RPMS 2> /dev/null) |
, -regex ".*/${prefix}contribs/i386/RPMS" -exec chgrp contribs {} \+ |