mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Introduce new flag -force-components to aptly mirror create to ignore
components in Release file while doing checks. #147
This commit is contained in:
@@ -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,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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user