Fix for stripping part with slashes from component names. #140

Now aptly won't strip by default, but if distribution contains slash (like 'wheezy/updates')
and component starts with last part of distribution ('updates/main'), it would be stripped.
This commit is contained in:
Andrey Smirnov
2014-11-14 00:13:58 +03:00
parent 036baa2264
commit 61e22743af
5 changed files with 63 additions and 2 deletions
+11
View File
@@ -306,3 +306,14 @@ class CreateMirror26Test(BaseTest):
runCmd = "aptly mirror create -keyring=aptlytest.gpg -with-udebs mirror26 http://pkg.jenkins-ci.org/debian-stable binary/"
fixtureGpg = True
expectedCode = 1
class CreateMirror27Test(BaseTest):
"""
create mirror: component with slashes, no stripping
"""
runCmd = "aptly mirror create --ignore-signatures mirror27 http://linux.dell.com/repo/community/ubuntu wheezy openmanage/740"
def check(self):
self.check_output()
self.check_cmd_output("aptly mirror show mirror27", "mirror_show")