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.
_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit