summaryrefslogtreecommitdiffstats
path: root/mga-move-update
diff options
context:
space:
mode:
Diffstat (limited to 'mga-move-update')
-rw-r--r--mga-move-update17
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"