This commit is contained in:
André Roth
2024-11-07 17:05:00 +01:00
parent bf4b660568
commit 38485a5b1e
3 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Loading packages...
[+] mesa-stable-no-march_24.2.6-101pika1_amd64 added
[+] mesa-stable_24.2.6-101pika1_amd64 added

View File

@@ -0,0 +1,8 @@
Name: repo17
Comment: Repo17
Default Distribution: squeeze
Default Component: main
Number of packages: 2
Packages:
mesa-stable_24.2.6-101pika1_amd64
mesa-stable-no-march_24.2.6-101pika1_amd64

View File

@@ -344,3 +344,21 @@ class AddRepo16Test(BaseTest):
self.check_cmd_output("aptly repo show repo2", "repo_show")
shutil.rmtree(self.tempSrcDir)
class AddRepo17Test(BaseTest):
"""
add packages to local repo: .deb file with provides
"""
fixtureCmds = [
"aptly repo create -comment=Repo17 -distribution=squeeze repo17",
]
runCmd = "aptly repo add repo17 ${testfiles}/mesa-stable_24.2.6-101pika1_amd64.deb ${testfiles}/mesa-stable-no-march_24.2.6-101pika1_amd64.deb"
def check(self):
self.check_output()
self.check_cmd_output("aptly repo show -with-packages repo17", "repo_show")
# check pool
self.check_exists('pool/e3/f6/51297bd4bd0ef999296ef0a28299_mesa-stable-no-march_24.2.6-101pika1_amd64.deb')
self.check_exists('pool/01/6b/3d864229761eff49a8680c9987ab_mesa-stable_24.2.6-101pika1_amd64.deb')