diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-06-22 22:53:34 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-06-22 22:53:34 +0000 |
commit | bb0655af283b7a10b31d4d32ebd7c6f980524fff (patch) | |
tree | 1b4315b2925dfb1980a4043cf6b932a30cc84452 /mga-move-update | |
parent | a9ed0fee3413f0c27b544065234f5ecb8df08e52 (diff) | |
download | mgatools-bb0655af283b7a10b31d4d32ebd7c6f980524fff.tar mgatools-bb0655af283b7a10b31d4d32ebd7c6f980524fff.tar.gz mgatools-bb0655af283b7a10b31d4d32ebd7c6f980524fff.tar.bz2 mgatools-bb0655af283b7a10b31d4d32ebd7c6f980524fff.tar.xz mgatools-bb0655af283b7a10b31d4d32ebd7c6f980524fff.zip |
add hdlist generation, update of MD5SUM file, and mirror from bootstrap to mirror directory
Diffstat (limited to 'mga-move-update')
-rw-r--r-- | mga-move-update | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/mga-move-update b/mga-move-update index e82e575..2916b09 100644 --- a/mga-move-update +++ b/mga-move-update @@ -1,7 +1,6 @@ #!/bin/sh . /usr/share/mgatools/functions -moveupdate_allowed_group=mga-qa if [ $# != 3 ] then @@ -58,6 +57,19 @@ function movepkg() done } +function post() +{ + for arch in $arches + do + update_hdlist "$distribdir/$distrorelease/$arch/media/$section/updates_testing" + update_hdlist "$distribdir/$distrorelease/$arch/media/$section/updates" + update_hdlist "$distribdir/$distrorelease/$arch/media/debug/$section/updates_testing" + update_hdlist "$distribdir/$distrorelease/$arch/media/debug/$section/updates" + done + update_common_MD5SUM $distrorelease + mirror_repository $distrorelease +} + mailcontent=$(mktemp) for arch in $arches do @@ -65,11 +77,12 @@ do movepkg "$distribdir/$distrorelease/$arch/media/debug/$section/updates_testing" "$distribdir/$distrorelease/$arch/media/debug/$section/updates/" "$srcpkg" "$mailcontent" done -if [ -n $dryrun ] +if [ -n "$dryrun" ] then cat "$mailcontent" else /usr/bin/mailx -s "mga-move-update $distrorelease $section $srcname" -S "from=moveupdate_mailfrom" "$moveupdate_mailto" < "$mailcontent" + post fi rm -f "$mailcontent" |