summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-06-22 09:31:45 +0200
committerJonas Smedegaard <dr@jones.dk>2017-06-23 13:03:42 +0200
commit08a8d8f4cfdfa200861c650012dcb2f74edf7819 (patch)
treeaca23d6d81d2b7c68ef9dad989bc6f41df1bbfd4 /debian
parent7c1dc7b32f9a30766e38407b95eaa5344cbec836 (diff)
Tidy pkgarchs.sh: Simplify and modernize resolving suite (custom-passed suite never really needed)
Diffstat (limited to 'debian')
-rw-r--r--debian/pkgarchs.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/pkgarchs.sh b/debian/pkgarchs.sh
index c8f4270..e8b15fb 100644
--- a/debian/pkgarchs.sh
+++ b/debian/pkgarchs.sh
@@ -23,12 +23,12 @@
set -e
defaultsuite="unstable"
-currentsuite="`dpkg-parsechangelog | grep ^Distribution: | awk '{print $2}'`"
+pkgsuite="$(dpkg-parsechangelog -S Distribution)"
pkg="$1"
-suite="${2:-$currentsuite}"
+suite="$pkgsuite"
-case "$suite" in
+case "$pkgsuite" in
experimental)
suite="unstable,experimental"
;;