[Blends-commit] [SCM] website branch, master, updated. d3757f505b347af1a780fb4c17a2f836a0879598

Andreas Tille tille at debian.org
Thu Feb 13 13:39:04 UTC 2014


The following commit has been merged in the master branch:
commit bf8d480072d42b42ace0e350d550792e6d67ccac
Author: Andreas Tille <tille at debian.org>
Date:   Wed Feb 5 11:56:51 2014 +0100

    Prevent strange error messages of machine-readable gatherer

diff --git a/misc/machine_readable/fetch-machine-readable b/misc/machine_readable/fetch-machine-readable
index f905243..8ac3de2 100755
--- a/misc/machine_readable/fetch-machine-readable
+++ b/misc/machine_readable/fetch-machine-readable
@@ -136,8 +136,11 @@ git_checkout_machine_readable () {
     echo "Vcs-Browser: http://git.debian.org"`echo $1 | sed 's+^/git/+/?p=+'` >> $TARGETDIR/$firstletter/${srcname}.vcs
     echo "Blend: `echo $2 | sed 's?/.*??'`" >> $TARGETDIR/$firstletter/${srcname}.vcs
     for file in `git ls-tree HEAD debian/ 2>/dev/null | grep -e "/control$" -e "/changelog$" -e "/copyright$" -e "/upstream$" | sed 's/^[0-9]\+[[:space:]]\+blob[[:space:]]\+[0-9a-f]\+[[:space:]]\+//'` ; do
-      target=$TARGETDIR/$firstletter/${srcname}.`echo $file | sed 's?debian/??'`
-      git show HEAD:$file > $target
+      # for very strange reasons in two cases (pkg-games/pentobi.git and pkg-octave/octave.git) the line above contains strings not starting with ^debian ... enforcing this
+      if echo $file | grep -q ^debian ; then
+        target=$TARGETDIR/$firstletter/${srcname}.`echo $file | sed 's?debian/??'`
+        git show HEAD:$file > $target
+      fi
     done
   else
     echo "Can not find debian/changelog in $1" >> $ERRLOG

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list