[DRE-commits] [SCM] pkg-ruby-extras.git branch, master, updated. 84fbecbfa2a7bedff18e58cb0e0677c273abee81

Antonio Terceiro terceiro at debian.org
Tue Jan 31 22:53:52 UTC 2012


The following commit has been merged in the master branch:
commit 84fbecbfa2a7bedff18e58cb0e0677c273abee81
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Tue Jan 31 20:51:32 2012 -0200

    fix list of packages to be pulled
    
    for some reason that need_push variable inside the look was not
    available anymore after the loop

diff --git a/quick-update b/quick-update
index 87eee3b..84297a6 100755
--- a/quick-update
+++ b/quick-update
@@ -19,19 +19,18 @@ ssh git.debian.org "cd /git/pkg-ruby-extras/ && $remote_list_heads" > remote.hea
 echo "I: Listing local master branches ..."
 sh -c "$list_heads" > local.heads
 
-need_push=""
-need_pull=""
+rm -rf .pull.list
 diff remote.heads local.heads | grep '^<' | cut -d ' ' -f 2-3 | while read package head; do
   if (cd $package && git show $head >/dev/null 2>&1); then
     echo "\033[01;33mW: $package needs to be pushed!\033[m"
-    need_push="$need_push $package"
   else
-    need_pull="$need_pull $package"
+    echo "I: $package needs to be pulled"
+    echo "$package" >> .pull.list
   fi
 done
 
-if [ -n "$need_pull" ]; then
-  for package in $need_pull; do
+if [ -e .pull.list ]; then
+  for package in $(cat .pull.list); do
     echo "I: Updating $package ..."
     (cd $package && git pull)
   done

-- 
pkg-ruby-extras.git



More information about the Pkg-ruby-extras-commits mailing list