mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
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:
@@ -0,0 +1,4 @@
|
||||
Downloading http://linux.dell.com/repo/community/ubuntu/dists/wheezy/Release...
|
||||
|
||||
Mirror [mirror27]: http://linux.dell.com/repo/community/ubuntu/ wheezy successfully added.
|
||||
You can run 'aptly mirror update mirror27' to download repository contents.
|
||||
@@ -0,0 +1,19 @@
|
||||
Name: mirror27
|
||||
Archive Root URL: http://linux.dell.com/repo/community/ubuntu/
|
||||
Distribution: wheezy
|
||||
Components: openmanage/740
|
||||
Architectures: amd64, i386
|
||||
Download Sources: no
|
||||
Download .udebs: no
|
||||
Last update: never
|
||||
|
||||
Information from release file:
|
||||
Architectures: amd64 i386 source
|
||||
Codename: wheezy
|
||||
Components: openmanage openmanage/801 openmanage/740 openmanage/730
|
||||
Date: Wed, 22 Oct 2014 18:50:39 UTC
|
||||
Description: Unofficial Dell OMSA build for Ubuntu
|
||||
|
||||
Label: Dell OMSA Archive
|
||||
Origin: Dell Inc
|
||||
Suite: wheezy
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user