]> git.donarmstrong.com Git - neurodebian.git/commitdiff
BF+ENH: nd_rebuildarchive had to have :s in the regexp for grep + notes for post...
authorYaroslav Halchenko <debian@onerussian.com>
Mon, 30 Apr 2012 17:05:23 +0000 (13:05 -0400)
committerYaroslav Halchenko <debian@onerussian.com>
Mon, 30 Apr 2012 17:05:23 +0000 (13:05 -0400)
tools/nd_rebuildarchive

index a189315fde2b4c137a93ec9aeafe33f1b208f1f0..0b8cafe84618083dceb19161d5840c24dd26e1ad 100755 (executable)
@@ -38,7 +38,7 @@ summary_file="$old_dist-$dist.summary"
 
 [ -e "$list_file" ] || \
     ssh -l $repo_user $repo_server cat $repo_distspath/$old_dist/*/source/Sources.gz \
-    | zgrep -e '^\(Package\|Directory\| [a-z0-9]\{32\} [0-9]* \S*.dsc$\)' \
+    | zgrep -e '^\(Package:\|Directory:\| [a-z0-9]\{32\} [0-9]* \S*.dsc$\)' \
     | sed -e 's,.* \([^ ][^ ]*\)$,\1,g' | tr '\n' ' '| sed -e 's,\.dsc,.dsc\n,g' \
     > "$list_file"
    
@@ -70,4 +70,31 @@ cat $list_file \
     } || {
        echo -e "E: $bpdscfile\t\tFAILED to build" >> $summary_file
     }
-done
\ No newline at end of file
+done
+
+exit 0
+
+# Then following steps were done manually ATM and here kept as notes
+# but version checking should altogether go into nd_backportdsc I guess
+# or at least in the logic above
+
+# upload all not yet uploaded
+for f in *~nd*.changes; do uf=${f//.changes/.neurodn.upload}; [ -e $uf ] && continue;  debsign $f; dput neurodn $f; done 
+
+# on the neuro.debian.net side
+# filtered out incoming from pkgs with versions in official distribution
+for c in *changes; do pkg_ver=`grep '\.deb$' $c | head -1  | sed -e 's,.* \([^_]*\)_\(.*\)_.*,\1 \2,g'`;  echo $pkg_ver; done | uniq | while read p v; do  uver=$(whohas -D Ubuntu --strict $p | grep '/precise/' | awk '{print $3;}');  dpkg --compare-versions $v lt "$uver" && echo $c $p $v $uver; done 2>&1 | tee up-to-date-list.txt
+
+# and moved corresponding changelogs away
+mv `awk '{print $1,$2;}' up-to-date-list.txt | while read p v; do grep -l "${p}_${v}" *changes; done | sort | uniq` NOT_UPLOADED/
+
+# processed the incoming
+/home/neurodebian/reprepro/nd_processincoming.sh
+
+# locally now updated the cows
+sudo nd_updatedist nd+ubuntu precise
+
+# And build which previously failed, most probably due to unsatisfied dependencies
+# and possibly failure with outdated versions of 3rd party modules
+#grep -v OLD summary.build | grep FAILED | sed -e 's,_\(i386\|amd64\).build.*,,g' | sort | uniq | while read p; do sudo nd_build nd+ubuntu precise $p.dsc; done
+grep -v -e OLD -e networkx summary.build | grep FAILED  | sed -e 's,_\(i386\|amd64\).build.*,,g' | sort | uniq | while read p; do sudo nd_build nd+ubuntu precise $p.dsc; done