summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2015-08-18 20:39:59 +0200
committerMichael Vogt <mvo@debian.org>2015-08-18 20:39:59 +0200
commita8275acf87cf15992e6b89694d6276e0a5e529b9 (patch)
tree44e4264e28d8a932a1298f71b316fd01359fb39c /test/integration/framework
parent5b1997c095acf183077ec49b2a8cbb1174e3c280 (diff)
Add support for "apt-cache showsrc --only-source srcpkgname"
Thanks: Steve Slangasek for the suggestion Closes: 695633
Diffstat (limited to 'test/integration/framework')
-rw-r--r--test/integration/framework3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/integration/framework b/test/integration/framework
index b443f2a7b..d9282eede 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -794,6 +794,7 @@ insertsource() {
local ARCH="$3"
local VERSION="$4"
local DEPENDENCIES="$5"
+ local BINARY="${6:-$NAME}"
local ARCHS=""
local SPATH="aptarchive/dists/${RELEASE}/main/source"
mkdir -p $SPATH
@@ -801,7 +802,7 @@ insertsource() {
local DSCFILE="${NAME}_${VERSION}.dsc"
local TARFILE="${NAME}_${VERSION}.tar.gz"
echo "Package: $NAME
-Binary: $NAME
+Binary: $BINARY
Version: $VERSION
Maintainer: Joe Sixpack <joe@example.org>
Architecture: $ARCH" >> $FILE