mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Test for ppa short URL in aptly mirror create.
This commit is contained in:
@@ -2,6 +2,9 @@ Usage: aptly mirror create <name> <archive url> <distribution> [<component1> ...
|
|||||||
|
|
||||||
Create records information about new mirror and fetches Release file (it doesn't download packages).
|
Create records information about new mirror and fetches Release file (it doesn't download packages).
|
||||||
|
|
||||||
|
PPA url could specified in short format when running on Debian/Ubuntu:
|
||||||
|
$ aptly mirror create some_ppa ppa:user/project
|
||||||
|
|
||||||
ex:
|
ex:
|
||||||
$ aptly mirror create wheezy-main http://mirror.yandex.ru/debian/ wheezy main
|
$ aptly mirror create wheezy-main http://mirror.yandex.ru/debian/ wheezy main
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/InRelease...
|
||||||
|
Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/Release...
|
||||||
|
Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/Release.gpg...
|
||||||
|
gpgv: RSA key ID 3B1F56C0
|
||||||
|
gpgv: Good signature from "Launchpad sim"
|
||||||
|
|
||||||
|
Mirror [mirror18]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick successfully added.
|
||||||
|
You can run 'aptly mirror update mirror18' to download repository contents.
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
Name: mirror18
|
||||||
|
Archive Root URL: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/
|
||||||
|
Distribution: maverick
|
||||||
|
Components: main
|
||||||
|
Architectures: amd64, armel, i386, powerpc
|
||||||
|
Download Sources: no
|
||||||
|
Last update: never
|
||||||
|
|
||||||
|
Information from release file:
|
||||||
|
Architectures: amd64 armel i386 powerpc
|
||||||
|
Codename: maverick
|
||||||
|
Components: main
|
||||||
|
Date: Mon, 22 Oct 2012 13:19:50 UTC
|
||||||
|
Description: Ubuntu Maverick 10.10
|
||||||
|
|
||||||
|
Label: gnuplot
|
||||||
|
Origin: LP-PPA-gladky-anton-gnuplot
|
||||||
|
Suite: maverick
|
||||||
|
Version: 10.10
|
||||||
@@ -188,3 +188,22 @@ class CreateMirror17Test(BaseTest):
|
|||||||
def check(self):
|
def check(self):
|
||||||
self.check_output()
|
self.check_output()
|
||||||
self.check_cmd_output("aptly mirror show mirror17", "mirror_show")
|
self.check_cmd_output("aptly mirror show mirror17", "mirror_show")
|
||||||
|
|
||||||
|
|
||||||
|
class CreateMirror18Test(BaseTest):
|
||||||
|
"""
|
||||||
|
create mirror: mirror with ppa URL
|
||||||
|
"""
|
||||||
|
fixtureGpg = True
|
||||||
|
outputMatchPrepare = lambda _, s: re.sub(r'Signature made .* using', '', s)
|
||||||
|
|
||||||
|
configOverride = {
|
||||||
|
"ppaDistributorID": "ubuntu",
|
||||||
|
"ppaCodename": "maverick",
|
||||||
|
}
|
||||||
|
|
||||||
|
runCmd = "aptly mirror create -keyring=aptlytest.gpg mirror18 ppa:gladky-anton/gnuplot"
|
||||||
|
|
||||||
|
def check(self):
|
||||||
|
self.check_output()
|
||||||
|
self.check_cmd_output("aptly mirror show mirror18", "mirror_show")
|
||||||
|
|||||||
Reference in New Issue
Block a user