mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-15 11:57:59 +00:00
Imported Upstream version 1.0.1
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
Format: 1.0
|
||||
Source: pyspi
|
||||
Binary: python-at-spi
|
||||
Architecture: any
|
||||
Version: 0.6.1-1.3
|
||||
Maintainer: Jose Carlos Garcia Sogo <jsogo@debian.org>
|
||||
Homepage: http://people.redhat.com/zcerza/dogtail
|
||||
Standards-Version: 3.7.3
|
||||
Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk
|
||||
Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev
|
||||
Files:
|
||||
d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz
|
||||
@@ -0,0 +1,7 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (0)...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,41 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading mirrors:
|
||||
- wheezy-backports
|
||||
- wheezy-updates-src
|
||||
- wheezy-main
|
||||
- wheezy-contrib
|
||||
- sensu
|
||||
- wheezy-main-src
|
||||
- wheezy-backports-src
|
||||
- wheezy-contrib-src
|
||||
- wheezy-non-free
|
||||
- wheezy-non-free-src
|
||||
- wheezy-updates
|
||||
Loading local repos:
|
||||
Loading snapshots:
|
||||
Loading published repositories:
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (7)...
|
||||
List of package keys to delete:
|
||||
- Pall gnuplot 4.6.1-1~maverick2 36650cfe603d11a1
|
||||
- Pall gnuplot-doc 4.6.1-1~maverick2 10c388f966074d29
|
||||
- Pamd64 gnuplot-nox 4.6.1-1~maverick2 336b8733c4444003
|
||||
- Pamd64 gnuplot-x11 4.6.1-1~maverick2 7300d8122b81b641
|
||||
- Pi386 gnuplot-nox 4.6.1-1~maverick2 17785995cf0f815
|
||||
- Pi386 gnuplot-x11 4.6.1-1~maverick2 d42e1d0d2f23740
|
||||
- Psource gnuplot 4.6.1-1~maverick2 b8cd36358f5db41f
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (9)...
|
||||
List of files to be deleted:
|
||||
- 02/1d/gnuplot_4.6.1-1~maverick2.dsc
|
||||
- 10/32/gnuplot_4.6.1-1~maverick2.debian.tar.gz
|
||||
- 17/ab/gnuplot-x11_4.6.1-1~maverick2_amd64.deb
|
||||
- 25/a5/gnuplot-doc_4.6.1-1~maverick2_all.deb
|
||||
- 49/12/gnuplot_4.6.1-1~maverick2_all.deb
|
||||
- 4c/9a/gnuplot_4.6.1.orig.tar.gz
|
||||
- a7/ef/gnuplot-nox_4.6.1-1~maverick2_i386.deb
|
||||
- db/55/gnuplot-nox_4.6.1-1~maverick2_amd64.deb
|
||||
- fc/ad/gnuplot-x11_4.6.1-1~maverick2_i386.deb
|
||||
Disk space freed: 10.85 MiB...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,42 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading mirrors:
|
||||
- wheezy-backports
|
||||
- wheezy-updates-src
|
||||
- wheezy-main
|
||||
- wheezy-contrib
|
||||
- sensu
|
||||
- wheezy-main-src
|
||||
- wheezy-backports-src
|
||||
- wheezy-contrib-src
|
||||
- wheezy-non-free
|
||||
- wheezy-non-free-src
|
||||
- wheezy-updates
|
||||
Loading local repos:
|
||||
Loading snapshots:
|
||||
Loading published repositories:
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (7)...
|
||||
List of package keys to delete:
|
||||
- Pall gnuplot 4.6.1-1~maverick2 36650cfe603d11a1
|
||||
- Pall gnuplot-doc 4.6.1-1~maverick2 10c388f966074d29
|
||||
- Pamd64 gnuplot-nox 4.6.1-1~maverick2 336b8733c4444003
|
||||
- Pamd64 gnuplot-x11 4.6.1-1~maverick2 7300d8122b81b641
|
||||
- Pi386 gnuplot-nox 4.6.1-1~maverick2 17785995cf0f815
|
||||
- Pi386 gnuplot-x11 4.6.1-1~maverick2 d42e1d0d2f23740
|
||||
- Psource gnuplot 4.6.1-1~maverick2 b8cd36358f5db41f
|
||||
Skipped deletion, as -dry-run has been requested.
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (9)...
|
||||
List of files to be deleted:
|
||||
- 02/1d/gnuplot_4.6.1-1~maverick2.dsc
|
||||
- 10/32/gnuplot_4.6.1-1~maverick2.debian.tar.gz
|
||||
- 17/ab/gnuplot-x11_4.6.1-1~maverick2_amd64.deb
|
||||
- 25/a5/gnuplot-doc_4.6.1-1~maverick2_all.deb
|
||||
- 49/12/gnuplot_4.6.1-1~maverick2_all.deb
|
||||
- 4c/9a/gnuplot_4.6.1.orig.tar.gz
|
||||
- a7/ef/gnuplot-nox_4.6.1-1~maverick2_i386.deb
|
||||
- db/55/gnuplot-nox_4.6.1-1~maverick2_amd64.deb
|
||||
- fc/ad/gnuplot-x11_4.6.1-1~maverick2_i386.deb
|
||||
Skipped file deletion, as -dry-run has been requested.
|
||||
Skipped DB compaction, as -dry-run has been requested.
|
||||
@@ -0,0 +1,7 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (0)...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,7 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (73270)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (0)...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,8 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (7)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (9)...
|
||||
Disk space freed: 10.85 MiB...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,7 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (0)...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,8 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (7)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (9)...
|
||||
Disk space freed: 10.85 MiB...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,7 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (0)...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,7 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (0)...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,8 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (3)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (5)...
|
||||
Disk space freed: 37.04 KiB...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,7 @@
|
||||
Loading mirrors, local repos, snapshots and published repos...
|
||||
Loading list of all packages...
|
||||
Deleting unreferenced packages (0)...
|
||||
Building list of files referenced by packages...
|
||||
Building list of files in package pool...
|
||||
Deleting unreferenced files (0)...
|
||||
Compacting database...
|
||||
@@ -0,0 +1,4 @@
|
||||
Removing ${HOME}/.aptly/public/dists/def...
|
||||
Cleaning up prefix "." components main...
|
||||
|
||||
Published repository has been removed successfully.
|
||||
@@ -0,0 +1 @@
|
||||
Recovering database...
|
||||
@@ -0,0 +1 @@
|
||||
Recovering database...
|
||||
@@ -0,0 +1,16 @@
|
||||
List of mirrors:
|
||||
* [gnuplot-maverick-src]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick [src]
|
||||
* [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick
|
||||
* [sensu]: http://repos.sensuapp.org/apt/ sensu
|
||||
* [wheezy-backports-src]: http://mirror.yandex.ru/debian/ wheezy-backports [src]
|
||||
* [wheezy-backports]: http://mirror.yandex.ru/debian/ wheezy-backports
|
||||
* [wheezy-contrib-src]: http://mirror.yandex.ru/debian/ wheezy [src]
|
||||
* [wheezy-contrib]: http://mirror.yandex.ru/debian/ wheezy
|
||||
* [wheezy-main-src]: http://mirror.yandex.ru/debian/ wheezy [src]
|
||||
* [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy
|
||||
* [wheezy-non-free-src]: http://mirror.yandex.ru/debian/ wheezy [src]
|
||||
* [wheezy-non-free]: http://mirror.yandex.ru/debian/ wheezy
|
||||
* [wheezy-updates-src]: http://mirror.yandex.ru/debian/ wheezy-updates [src]
|
||||
* [wheezy-updates]: http://mirror.yandex.ru/debian/ wheezy-updates
|
||||
|
||||
To get more information about mirror, run `aptly mirror show <name>`.
|
||||
@@ -0,0 +1,6 @@
|
||||
"""
|
||||
Testing DB operations
|
||||
"""
|
||||
|
||||
from .cleanup import *
|
||||
from .recover import *
|
||||
@@ -0,0 +1,152 @@
|
||||
from lib import BaseTest
|
||||
|
||||
|
||||
class CleanupDB1Test(BaseTest):
|
||||
"""
|
||||
cleanup db: no DB
|
||||
"""
|
||||
runCmd = "aptly db cleanup"
|
||||
|
||||
|
||||
class CleanupDB2Test(BaseTest):
|
||||
"""
|
||||
cleanup db: deleting packages when mirrors are missing
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixtureCmds = [
|
||||
"aptly mirror drop wheezy-main-src",
|
||||
"aptly mirror drop wheezy-main",
|
||||
"aptly mirror drop wheezy-contrib",
|
||||
]
|
||||
runCmd = "aptly db cleanup"
|
||||
|
||||
|
||||
class CleanupDB3Test(BaseTest):
|
||||
"""
|
||||
cleanup db: deleting packages and files
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixturePoolCopy = True
|
||||
fixtureCmds = [
|
||||
"aptly mirror drop gnuplot-maverick-src",
|
||||
"aptly mirror drop gnuplot-maverick",
|
||||
]
|
||||
runCmd = "aptly db cleanup"
|
||||
|
||||
|
||||
class CleanupDB4Test(BaseTest):
|
||||
"""
|
||||
cleanup db: deleting a mirror, but still referenced by snapshot
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixturePoolCopy = True
|
||||
fixtureCmds = [
|
||||
"aptly snapshot create gnuplot from mirror gnuplot-maverick",
|
||||
"aptly mirror drop -force gnuplot-maverick",
|
||||
]
|
||||
runCmd = "aptly db cleanup"
|
||||
|
||||
|
||||
class CleanupDB5Test(BaseTest):
|
||||
"""
|
||||
cleanup db: create/delete snapshot, drop mirror
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixturePoolCopy = True
|
||||
fixtureCmds = [
|
||||
"aptly mirror drop gnuplot-maverick-src",
|
||||
"aptly snapshot create gnuplot from mirror gnuplot-maverick",
|
||||
"aptly snapshot drop gnuplot",
|
||||
"aptly mirror drop gnuplot-maverick",
|
||||
]
|
||||
runCmd = "aptly db cleanup"
|
||||
|
||||
|
||||
class CleanupDB6Test(BaseTest):
|
||||
"""
|
||||
cleanup db: db is full
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixturePoolCopy = True
|
||||
runCmd = "aptly db cleanup"
|
||||
|
||||
|
||||
class CleanupDB7Test(BaseTest):
|
||||
"""
|
||||
cleanup db: local repos
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create local-repo",
|
||||
"aptly repo add local-repo ${files}",
|
||||
]
|
||||
runCmd = "aptly db cleanup"
|
||||
|
||||
|
||||
class CleanupDB8Test(BaseTest):
|
||||
"""
|
||||
cleanup db: local repos dropped
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create local-repo",
|
||||
"aptly repo add local-repo ${files}",
|
||||
"aptly repo drop local-repo",
|
||||
]
|
||||
runCmd = "aptly db cleanup"
|
||||
|
||||
|
||||
class CleanupDB9Test(BaseTest):
|
||||
"""
|
||||
cleanup db: publish local repo, remove packages from repo, db cleanup
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create -distribution=abc local-repo",
|
||||
"aptly repo create -distribution=def local-repo2",
|
||||
"aptly repo add local-repo ${files}",
|
||||
"aptly publish repo -skip-signing local-repo",
|
||||
"aptly publish repo -skip-signing -architectures=i386 local-repo2",
|
||||
"aptly repo remove local-repo Name",
|
||||
]
|
||||
runCmd = "aptly db cleanup"
|
||||
|
||||
def check(self):
|
||||
self.check_output()
|
||||
self.check_cmd_output("aptly publish drop def", "publish_drop", match_prepare=self.expand_environ)
|
||||
|
||||
|
||||
class CleanupDB10Test(BaseTest):
|
||||
"""
|
||||
cleanup db: conflict in packages, should not cleanup anything
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly repo create a",
|
||||
"aptly repo create b",
|
||||
"aptly repo add a ${files}",
|
||||
"aptly repo add b ${testfiles}"
|
||||
]
|
||||
runCmd = "aptly db cleanup"
|
||||
|
||||
|
||||
class CleanupDB11Test(BaseTest):
|
||||
"""
|
||||
cleanup db: deleting packages and files, -verbose
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixturePoolCopy = True
|
||||
fixtureCmds = [
|
||||
"aptly mirror drop gnuplot-maverick-src",
|
||||
"aptly mirror drop gnuplot-maverick",
|
||||
]
|
||||
runCmd = "aptly db cleanup -verbose"
|
||||
|
||||
|
||||
class CleanupDB12Test(BaseTest):
|
||||
"""
|
||||
cleanup db: deleting packages and files, -verbose & -dry-run
|
||||
"""
|
||||
fixtureDB = True
|
||||
fixturePoolCopy = True
|
||||
fixtureCmds = [
|
||||
"aptly mirror drop gnuplot-maverick-src",
|
||||
"aptly mirror drop gnuplot-maverick",
|
||||
]
|
||||
runCmd = "aptly db cleanup -verbose -dry-run"
|
||||
@@ -0,0 +1,25 @@
|
||||
from lib import BaseTest
|
||||
|
||||
|
||||
class RecoverDB1Test(BaseTest):
|
||||
"""
|
||||
recover db: no DB
|
||||
"""
|
||||
runCmd = "aptly db recover"
|
||||
|
||||
|
||||
class RecoverDB2Test(BaseTest):
|
||||
"""
|
||||
recover db: without CURRENT files
|
||||
"""
|
||||
fixtureDB = True
|
||||
runCmd = "aptly db recover"
|
||||
|
||||
def prepare(self):
|
||||
super(RecoverDB2Test, self).prepare()
|
||||
|
||||
self.delete_file("db/CURRENT")
|
||||
|
||||
def check(self):
|
||||
self.check_output()
|
||||
self.check_cmd_output("aptly mirror list", "mirror_list")
|
||||
Reference in New Issue
Block a user