Loading do_backport +4 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,10 @@ fi PKG=`grep "Package:" debian/control | head -n1 | awk '/^Package:/ {print $2}'` VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed 's/-[^-]\+$//'` if ! apt-cache policy $PKG | grep -A3 $VERSION | grep -q testing ; then # FIXME: That's a bit weak if ! apt-cache policy $PKG | grep -A3 $VERSION | grep -q testing ; then # FIXME: That's a bit weak # Probably better: # TESTINGVERSION=$(rmadison $PKG --suite testing | sed "s/^$PKG \+| \+\([^ ]\+\) \+|.*/\1/") echo "Package $PKG version $VERSION does not seem to be in testing (according local apt-cache)" if [ $FORCE -ne 1 ] ; then exit 1 Loading Loading
do_backport +4 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,10 @@ fi PKG=`grep "Package:" debian/control | head -n1 | awk '/^Package:/ {print $2}'` VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed 's/-[^-]\+$//'` if ! apt-cache policy $PKG | grep -A3 $VERSION | grep -q testing ; then # FIXME: That's a bit weak if ! apt-cache policy $PKG | grep -A3 $VERSION | grep -q testing ; then # FIXME: That's a bit weak # Probably better: # TESTINGVERSION=$(rmadison $PKG --suite testing | sed "s/^$PKG \+| \+\([^ ]\+\) \+|.*/\1/") echo "Package $PKG version $VERSION does not seem to be in testing (according local apt-cache)" if [ $FORCE -ne 1 ] ; then exit 1 Loading