mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-02 04:50:49 +00:00
publish: persist multidist flag
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
"Codename": "",
|
||||
"Distribution": "maverick",
|
||||
"Label": "",
|
||||
"MultiDist": false,
|
||||
"NotAutomatic": "",
|
||||
"Origin": "LP-PPA-gladky-anton-gnuplot",
|
||||
"Path": "./maverick",
|
||||
@@ -33,6 +34,7 @@
|
||||
"Codename": "",
|
||||
"Distribution": "wheezy",
|
||||
"Label": "",
|
||||
"MultiDist": false,
|
||||
"NotAutomatic": "",
|
||||
"Origin": "",
|
||||
"Path": "ppa/smira/wheezy",
|
||||
@@ -58,6 +60,7 @@
|
||||
"Codename": "",
|
||||
"Distribution": "maverick",
|
||||
"Label": "",
|
||||
"MultiDist": false,
|
||||
"NotAutomatic": "",
|
||||
"Origin": "origin1",
|
||||
"Path": "ppa/tr1/maverick",
|
||||
@@ -83,6 +86,7 @@
|
||||
"Codename": "",
|
||||
"Distribution": "maverick",
|
||||
"Label": "label1",
|
||||
"MultiDist": false,
|
||||
"NotAutomatic": "",
|
||||
"Origin": "",
|
||||
"Path": "ppa/tr2/maverick",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"Codename": "",
|
||||
"Distribution": "maverick",
|
||||
"Label": "",
|
||||
"MultiDist": false,
|
||||
"NotAutomatic": "",
|
||||
"Origin": "LP-PPA-gladky-anton-gnuplot",
|
||||
"Path": "./maverick",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"Codename": "",
|
||||
"Distribution": "maverick",
|
||||
"Label": "",
|
||||
"MultiDist": false,
|
||||
"NotAutomatic": "",
|
||||
"Origin": "LP-PPA-gladky-anton-gnuplot",
|
||||
"Path": "ppa/smira/maverick",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
Loading packages...
|
||||
Generating metadata files and linking package files...
|
||||
Finalizing metadata files...
|
||||
Signing file 'Release' with gpg, please enter your passphrase when prompted:
|
||||
Clearsigning file 'Release' with gpg, please enter your passphrase when prompted:
|
||||
Cleaning up prefix "." components main...
|
||||
|
||||
Publish for snapshot ./bookworm (origin: LP-PPA-gladky-anton-gnuplot) [amd64, i386] publishes {main: [snap3]: Pulled into 'snap2' with 'snap1' as source, pull request was: 'gnuplot-x11'} has been successfully switched to new snapshot.
|
||||
@@ -0,0 +1,8 @@
|
||||
Loading packages...
|
||||
Generating metadata files and linking package files...
|
||||
Finalizing metadata files...
|
||||
Signing file 'Release' with gpg, please enter your passphrase when prompted:
|
||||
Clearsigning file 'Release' with gpg, please enter your passphrase when prompted:
|
||||
Cleaning up prefix "." components main...
|
||||
|
||||
Publish for local repo ./bookworm [i386, source] publishes {main: [local-repo]} has been successfully updated.
|
||||
@@ -581,3 +581,32 @@ class PublishSwitch15Test(BaseTest):
|
||||
self.check_exists('public/dists/maverick/main/binary-amd64/Packages')
|
||||
self.check_exists('public/dists/maverick/main/binary-amd64/Packages.gz')
|
||||
self.check_not_exists('public/dists/maverick/main/binary-amd64/Packages.bz2')
|
||||
|
||||
|
||||
class PublishSwitch16Test(BaseTest):
|
||||
"""
|
||||
publish switch: -multi-dist
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixturePool = True
|
||||
fixtureCmds = [
|
||||
"aptly snapshot create snap1 from mirror gnuplot-maverick",
|
||||
"aptly snapshot create snap2 empty",
|
||||
"aptly snapshot pull -no-deps -architectures=i386,amd64 snap2 snap1 snap3 gnuplot-x11",
|
||||
"aptly publish snapshot -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -distribution=bookworm snap1",
|
||||
]
|
||||
runCmd = "aptly publish switch -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -multi-dist bookworm snap3"
|
||||
gold_processor = BaseTest.expand_environ
|
||||
|
||||
def check(self):
|
||||
super(PublishSwitch16Test, self).check()
|
||||
|
||||
self.check_exists('public/dists/bookworm/Release')
|
||||
|
||||
self.check_exists('public/dists/bookworm/main/binary-i386/Packages')
|
||||
self.check_exists('public/dists/bookworm/main/binary-i386/Packages.gz')
|
||||
|
||||
self.check_exists('public/dists/bookworm/main/binary-amd64/Packages')
|
||||
self.check_exists('public/dists/bookworm/main/binary-amd64/Packages.gz')
|
||||
|
||||
self.check_exists('public/pool/bookworm/main/g/gnuplot/gnuplot-x11_4.6.1-1~maverick2_amd64.deb')
|
||||
|
||||
@@ -462,3 +462,28 @@ class PublishUpdate13Test(BaseTest):
|
||||
self.check_exists('public/dists/maverick/main/binary-i386/Packages')
|
||||
self.check_exists('public/dists/maverick/main/binary-i386/Packages.gz')
|
||||
self.check_not_exists('public/dists/maverick/main/binary-i386/Packages.bz2')
|
||||
|
||||
|
||||
class PublishUpdate14Test(BaseTest):
|
||||
"""
|
||||
publish update: -multi-dist
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create local-repo",
|
||||
"aptly repo add local-repo ${files}/",
|
||||
"aptly publish repo -keyring=${files}/aptly.pub -distribution=bookworm local-repo",
|
||||
]
|
||||
runCmd = "aptly publish update -keyring=${files}/aptly.pub -multi-dist bookworm"
|
||||
gold_processor = BaseTest.expand_environ
|
||||
|
||||
def check(self):
|
||||
super(PublishUpdate14Test, self).check()
|
||||
|
||||
self.check_exists('public/dists/bookworm/InRelease')
|
||||
self.check_exists('public/dists/bookworm/Release')
|
||||
self.check_exists('public/dists/bookworm/Release.gpg')
|
||||
|
||||
self.check_exists('public/dists/bookworm/main/binary-i386/Packages')
|
||||
self.check_exists('public/dists/bookworm/main/binary-i386/Packages.gz')
|
||||
|
||||
self.check_exists('public/pool/bookworm/main/b/boost-defaults/libboost-program-options-dev_1.49.0.1_i386.deb')
|
||||
|
||||
Reference in New Issue
Block a user