[med-svn] [Git][med-team/community/helper-scripts][master] May be using rmadison is better than apt-cache

Andreas Tille gitlab at salsa.debian.org
Fri May 10 13:21:22 BST 2019



Andreas Tille pushed to branch master at Debian Med / community / helper-scripts


Commits:
add3c67c by Andreas Tille at 2019-05-10T12:21:04Z
May be using rmadison is better than apt-cache

- - - - -


1 changed file:

- do_backport


Changes:

=====================================
do_backport
=====================================
@@ -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



View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/add3c67c8592cf616b8c5e87ce040bac050e8228

-- 
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/add3c67c8592cf616b8c5e87ce040bac050e8228
You're receiving this email because of your account on salsa.debian.org.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190510/14079192/attachment.html>


More information about the debian-med-commit mailing list