Package: autopkgtest
Version: 2.0.1
Severity: important
Tags: patch
If you use '@' in the Depends field of debian/tests/control in a
multi-binary package, then autopkgtest incorrectly expands this to just
one of your binaries duplicated as many times as you have binaries.
This is because it uses "d = d.replace('@',pkg)" and thus loses track of
the original contents of d each time round the loop. Patch attached.
Thanks,
--
Colin Watson [[email protected]]
>From c176041504ed84827dbf6d9bcb5196c3948a1439 Mon Sep 17 00:00:00 2001
From: Colin Watson <[email protected]>
Date: Tue, 3 Apr 2012 14:00:19 +0100
Subject: [PATCH] Fix parsing of '@' dependencies
---
runner/adt-run | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/runner/adt-run b/runner/adt-run
index 310c39a..e6e81f1 100755
--- a/runner/adt-run
+++ b/runner/adt-run
@@ -1126,9 +1126,9 @@ class Test:
dn.append(d)
else:
for (pkg,bin) in t.act.binaries:
- d = d.replace('@',pkg)
- t._debug(' synthesised dependency '+d)
- dn.append(d)
+ dp = d.replace('@',pkg)
+ t._debug(' synthesised dependency '+dp)
+ dn.append(dp)
testbed.prepare(dn)
def run(t, tree):
t._debug('[----------------------------------------')
--
1.7.9.1