From 530302ef25d14bd7577f18cf98c2fa868c3c1dd3 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Wed, 20 Jan 2016 00:09:36 +0100 Subject: always create pkg at the time pkg:arch is created To resolve dependencies like "pkg:arch" we create a package with the name "pkg:arch" and the architecture "any". We create these packages only if a dependency needs it as these kind of dependencies aren't that common. This commit ensured that in the even this architecture specific dependency is the only relation this package has we still create the underlying package to have them available in provides resolution. --- test/integration/test-apt-cache | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'test/integration/test-apt-cache') diff --git a/test/integration/test-apt-cache b/test/integration/test-apt-cache index 48d623596..bff1667e8 100755 --- a/test/integration/test-apt-cache +++ b/test/integration/test-apt-cache @@ -120,9 +120,12 @@ bar Depends: bar Breaks: foo Replaces: foo + Breaks: + Replaces: -' aptcache depends foo --recurse --implicit + +' aptcache depends foo --recurse --implicit testsuccessequal 'foo Depends: bar bar @@ -132,7 +135,9 @@ testsuccessequal 'foo Depends: bar bar Depends: bar - Replaces: foo' aptcache depends foo --recurse --important --replaces --implicit + Replaces: foo + Replaces: +' aptcache depends foo --recurse --important --replaces --implicit testsuccessequal 'bar Depends: bar Breaks: foo @@ -140,7 +145,9 @@ testsuccessequal 'bar testsuccessequal 'bar Depends: bar Breaks: foo - Replaces: foo' aptcache depends bar --implicit + Replaces: foo + Breaks: + Replaces: ' aptcache depends bar --implicit testsuccessequal 'specific Depends: -- cgit v1.2.3