From f05b31368ffdeb10b9facc813388d4cfc96a91cf Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 6 Jul 2014 23:23:55 +0200 Subject: [PATCH] webbuild: add support for mass rebuild of dependant packages --- webbuild/webbuild-cgi | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/webbuild/webbuild-cgi b/webbuild/webbuild-cgi index 32bf4e5..4437c4b 100755 --- a/webbuild/webbuild-cgi +++ b/webbuild/webbuild-cgi @@ -1958,6 +1958,18 @@ $PACKAGE.spec $RPMFORCEADD && $AUTOSPEC_CMD -u $PACKAGE -a10 --server $SENDREPOS # fi fi ;; + "repositorymassrebuilddependant") + if [ ! "$PACKAGES" ]; then + echo "ERROR: no package(s) selected." + RET=1 + else + $SUDO_WRAPPER background $ENVIRONMENT "$USER" "$PACKAGE" "autoport -r $SENDREPOSITORY -d $REPOSITORYIMPORTTO $PACKAGES -ud --user $USER" &>/dev/null + [ $? -ne 0 ] && RET=$? || { + RET=-1 + echo -n "Mass rebuild started. You may see the output in the Webbuild jobs box above." + } + fi + ;; "repositorysync") if [ "$REPOSITORY" ]; then $SUDO_WRAPPER background local "$USER" "" "/etc/cron.hourly/10-openmamba-sync-back $REPOSITORY" @@ -2219,13 +2231,13 @@ if [ "$MAINTAINERMODE" = "true" ]; then # simulate checkbox echo -n "" # changelog for mass rebuild - echo -n "
Mass rebuild:
Changelog:" + echo -n "
Mass rebuild of selected packages:
Changelog:" echo -n "" # autodist update buildrequirements - echo -n "Add build requirement:
" + echo -n "Add build requirement(s):
" echo -n "" # mass rebuild - echo -n ""`\"+p+\"`cgi_encodevar " from $REPOSITORY and send to "`\"+getSelectedValueById('repositoryimportto')+" echo -n "\"`cgi_encodevar "?"`\"" echo -n "); class=redbutton>" + # mass rebuild of dependant packages + echo -n ""`\"+p+\"`cgi_encodevar " in $REPOSITORY and send to "`\"+getSelectedValueById('repositoryimportto')+" + echo -n "\"`cgi_encodevar "?"`\"" + echo -n "); class=redbutton>" fi echo -n "]]>" fi