Introduce new flag -force-components to aptly mirror create to ignore

components in Release file while doing checks. #147
This commit is contained in:
Andrey Smirnov
2014-11-27 00:32:34 +03:00
parent 5fa487e2dc
commit 26c0502307
9 changed files with 49 additions and 4 deletions
@@ -21,6 +21,7 @@ Options:
-dep-follow-suggests=false: when processing dependencies, follow Suggests
-filter="": filter packages in mirror
-filter-with-deps=false: when filtering, include dependencies of matching packages as well
-force-components=false: (only with component list) skip check that requested components are listed in Release file
-ignore-signatures=false: disable verification of Release file signatures
-keyring=: gpg keyring to use when verifying Release file (could be specified multiple times)
-with-sources=false: download source packages in addition to binary packages
+1
View File
@@ -12,6 +12,7 @@ Options:
-dep-follow-suggests=false: when processing dependencies, follow Suggests
-filter="": filter packages in mirror
-filter-with-deps=false: when filtering, include dependencies of matching packages as well
-force-components=false: (only with component list) skip check that requested components are listed in Release file
-ignore-signatures=false: disable verification of Release file signatures
-keyring=: gpg keyring to use when verifying Release file (could be specified multiple times)
-with-sources=false: download source packages in addition to binary packages
@@ -0,0 +1,4 @@
Downloading http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/Release...
Mirror [mirror28]: http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist successfully added.
You can run 'aptly mirror update mirror28' to download repository contents.
@@ -0,0 +1,20 @@
Name: mirror28
Archive Root URL: http://downloads-distro.mongodb.org/repo/ubuntu-upstart/
Distribution: dist
Components: 10gen
Architectures: amd64, i386
Download Sources: no
Download .udebs: no
Last update: never
Information from release file:
Architectures: i386 amd64
Codename: dist
Components: mongodb
Date: Tue, 04 Nov 2014 00:04:56 UTC
Description: mongodb packages
Label: mongodb
Origin: mongodb
Suite: mongodb
Version: dist
+1 -1
View File
@@ -1,2 +1,2 @@
Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release...
ERROR: unable to fetch mirror: component life not available in repo [mirror4]: http://mirror.yandex.ru/debian/ wheezy
ERROR: unable to fetch mirror: component life not available in repo [mirror4]: http://mirror.yandex.ru/debian/ wheezy, use -force-components to override
+11
View File
@@ -317,3 +317,14 @@ class CreateMirror27Test(BaseTest):
def check(self):
self.check_output()
self.check_cmd_output("aptly mirror show mirror27", "mirror_show")
class CreateMirror28Test(BaseTest):
"""
create mirror: -force-components
"""
runCmd = "aptly mirror create -ignore-signatures -force-components mirror28 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen"
def check(self):
self.check_output()
self.check_cmd_output("aptly mirror show mirror28", "mirror_show")