[dh-make-perl] 04/05: add a fake apt-get for tests

gregor herrmann gregoa at debian.org
Wed Mar 23 23:14:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch gregoa/apt-file-3
in repository dh-make-perl.

commit 88a00a92dfcbb2dfab178b3d7ce75c36909810c6
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Mar 24 00:08:48 2016 +0100

    add a fake apt-get for tests
    
    adapted from apt-file
    
    thanks, nthykier
    
    Gbp-Dch: Ignore
---
 t/bin/apt-get | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/t/bin/apt-get b/t/bin/apt-get
new file mode 100755
index 0000000..ad360b3
--- /dev/null
+++ b/t/bin/apt-get
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# adapted from https://anonscm.debian.org/git/collab-maint/apt-file.git/plain/tests-apt-file/bin/apt-get
+
+if [ "$1" != "indextargets" ]; then
+	echo "$0: Fake apt-get does not support $1" >&1
+	exit 1
+fi
+
+ARCH=$(dpkg --print-architecture)
+echo "Contents-deb $ARCH unstable t/contents/test_debian_dists_sid_main_Contents"
+echo "Contents-deb $ARCH testing t/contents/test_debian_dists_testing_main_Contents"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/dh-make-perl.git



More information about the Pkg-perl-cvs-commits mailing list