Fix package search missing duplicate packages. #225

Implement package list with duplicate entries, use it when
initiating search from PackageCollection.
This commit is contained in:
Andrey Smirnov
2016-03-15 12:02:48 +03:00
parent bc438ff694
commit ff52d2655a
6 changed files with 115 additions and 8 deletions
+14
View File
@@ -60,3 +60,17 @@ class ShowPackage6Test(BaseTest):
]
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
runCmd = "aptly package show -with-references nginx-full_1.2.1-2.2+wheezy2_amd64"
class ShowPackage7Test(BaseTest):
"""
show package: with duplicates
"""
fixtureCmds = [
"aptly repo create a",
"aptly repo create b",
"aptly repo add a ${files}",
"aptly repo add b ${testfiles}"
]
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
runCmd = "aptly package show -with-references \"pyspi (0.6.1-1.3)\""