From 06a6a01604d2cceafea5ed113bb3a90825ab23fe Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 6 Dec 2010 16:30:06 -0500 Subject: [PATCH] All backported packages will depend on neurodebian-popularity-contest now --- debian/changelog | 3 ++- tools/nd_backport | 14 +++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 5376a3c..7b45714 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ neurodebian (0.20) unstable; urgency=low - * New package neurodebian-popularity-contest + * New package neurodebian-popularity-contest, which all backported + packages will depend on. -- Yaroslav Halchenko Mon, 06 Dec 2010 14:27:56 -0500 diff --git a/tools/nd_backport b/tools/nd_backport index 19b4954..b71fe5d 100755 --- a/tools/nd_backport +++ b/tools/nd_backport @@ -27,13 +27,21 @@ EOT exit 1 fi +upstream_name=${dscfile%%_*} + +# To overcome bash desire to claim empty array unbound under 'set -u' +# above, lets just specify empty rule for sed when nothing to be done +mod_control="" +if [ "$upstream_name" != "neurodebian" ]; then + # Avoid injection into neurodebian package itself + mod_control='s/\(^Depends:\) */\1 neurodebian-popularity-contest, /g' +fi + # assemble an appropriate backport-dsc call backport-dsc \ --maint-name "NeuroDebian Maintainers" \ --maint-email "team@neuro.debian.net" \ --target-distribution "$release" \ --version-suffix "$(nd_querycfg "release backport ids" "$release")" \ + --mod-control "$mod_control" \ "$dscfile" - -# not adding the auto-dep for now -# --mod-control 's/^Depends:.*$/&, neurodebian-trailer/' \ -- 2.39.2