├── system ├── README.rst ├── t04_mirror │ ├── ListMirror4Test_gold │ ├── test_release │ │ └── dists │ │ │ └── hardy │ │ │ ├── main │ │ │ └── binary-amd64 │ │ │ │ └── Packages │ │ │ └── Release │ ├── DropMirror1Test_gold │ ├── DropMirror3Test_gold │ ├── DropMirror4Test_gold │ ├── ListMirror2Test_gold │ ├── ShowMirror2Test_gold │ ├── DropMirror1Test_mirror_show │ ├── EditMirror2Test_gold │ ├── RenameMirror2Test_gold │ ├── RenameMirror3Test_gold │ ├── SearchMirror2Test_gold │ ├── UpdateMirror2Test_gold │ ├── CreateMirror15Test_gold │ ├── RenameMirror1Test_gold │ ├── SearchMirror3Test_gold │ ├── test_release2 │ │ ├── pool │ │ │ └── main │ │ │ │ └── a │ │ │ │ └── amanda │ │ │ │ └── amanda-client_3.3.1-3~bpo60+1_amd64.deb │ │ └── dists │ │ │ └── hardy │ │ │ ├── Release │ │ │ └── main │ │ │ └── binary-amd64 │ │ │ └── Packages │ ├── EditMirror1Test_gold │ ├── EditMirror3Test_gold │ ├── EditMirror5Test_gold │ ├── EditMirror4Test_gold │ ├── CreateMirror23Test_gold │ ├── CreateMirror8Test_gold │ ├── EditMirror6Test_gold │ ├── CreateMirror4Test_gold │ ├── EditMirror7Test_gold │ ├── CreateMirror5Test_gold │ ├── CreateMirror16Test_gold │ ├── DropMirror2Test_gold │ ├── CreateMirror1Test_gold │ ├── CreateMirror2Test_gold │ ├── CreateMirror3Test_gold │ ├── CreateMirror7Test_gold │ ├── CreateMirror13Test_gold │ ├── CreateMirror17Test_gold │ ├── CreateMirror22Test_gold │ ├── __init__.py │ ├── CreateMirror6Test_gold │ ├── ListMirror3Test_gold │ ├── CreateMirror20Test_gold │ ├── CreateMirror21Test_mirror_show │ ├── ListMirror1Test_gold │ ├── CreateMirror19Test_gold │ ├── CreateMirror9Test_gold │ ├── UpdateMirror3Test_gold │ ├── UpdateMirror4Test_gold │ ├── CreateMirror14Test_mirror_show │ ├── CreateMirror18Test_gold │ ├── CreateMirror12Test_gold │ ├── CreateMirror18Test_mirror_show │ ├── CreateMirror3Test_mirror_show │ ├── CreateMirror7Test_mirror_show │ ├── EditMirror6Test_mirror_show │ ├── CreateMirror17Test_mirror_show │ ├── CreateMirror21Test_gold │ ├── EditMirror3Test_mirror_show │ ├── CreateMirror11Test_gold │ ├── CreateMirror19Test_mirror_show │ ├── UpdateMirror5Test_gold │ ├── UpdateMirror6Test_gold │ ├── CreateMirror2Test_mirror_show │ ├── EditMirror1Test_mirror_show │ ├── CreateMirror10Test_gold │ ├── CreateMirror11Test_mirror_show │ ├── CreateMirror14Test_gold │ ├── ShowMirror1Test_gold │ ├── CreateMirror1Test_mirror_show │ ├── CreateMirror13Test_mirror_show │ ├── EditMirror5Test_mirror_show │ ├── rename.py │ ├── ShowMirror4Test_gold │ ├── CreateMirror22Test_mirror_show │ ├── CreateMirror9Test_mirror_show │ ├── UpdateMirror8Test_gold │ ├── search.py │ └── RenameMirror1Test_mirror_list ├── t09_repo │ ├── ListRepo3Test_gold │ ├── AddRepo11Test │ │ ├── pyspi_0.6.1.orig.tar.gz │ │ └── pyspi_0.6.1-1.3.conflict.dsc │ ├── AddRepo8Test │ │ ├── pyspi_0.6.1.orig.tar.gz │ │ └── pyspi_0.6.1-1.3.conflict.dsc │ ├── ListRepo4Test_gold │ ├── DropRepo1Test_gold │ ├── DropRepo3Test_gold │ ├── EditRepo1Test_gold │ ├── EditRepo2Test_gold │ ├── ImportRepo6Test_gold │ ├── AddRepo10Test_gold │ ├── AddRepo7Test_gold │ ├── CopyRepo6Test_gold │ ├── CopyRepo7Test_gold │ ├── CopyRepo8Test_gold │ ├── DropRepo4Test_gold │ ├── EditRepo3Test_gold │ ├── MoveRepo6Test_gold │ ├── MoveRepo7Test_gold │ ├── MoveRepo8Test_gold │ ├── RenameRepo3Test_gold │ ├── ShowRepo3Test_gold │ ├── DropRepo1Test_repo-show │ ├── ImportRepo7Test_gold │ ├── RenameRepo1Test_gold │ ├── RenameRepo2Test_gold │ ├── ImportRepo8Test_gold │ ├── ListRepo1Test_gold │ ├── RemoveRepo3Test_gold │ ├── SearchRepo2Test_gold │ ├── AddRepo1Test_gold │ ├── CreateRepo3Test_gold │ ├── SearchRepo3Test_gold │ ├── AddRepo2Test_gold │ ├── CopyRepo3Test_gold │ ├── MoveRepo3Test_gold │ ├── RemoveRepo1Test_gold │ ├── ImportRepo3Test_gold │ ├── CopyRepo5Test_gold │ ├── ImportRepo1Test_gold │ ├── MoveRepo5Test_gold │ ├── AddRepo4Test_gold │ ├── CreateRepo1Test_repo_show │ ├── ImportRepo5Test_gold │ ├── MoveRepo1Test_gold │ ├── MoveRepo2Test_gold │ ├── CopyRepo1Test_gold │ ├── CopyRepo2Test_gold │ ├── CreateRepo1Test_gold │ ├── EditRepo1Test_repo-show │ ├── RemoveRepo2Test_gold │ ├── ShowRepo1Test_gold │ ├── AddRepo5Test_repo_show │ ├── EditRepo2Test_repo-show │ ├── CreateRepo2Test_gold │ ├── AddRepo11Test_gold │ ├── CopyRepo4Test_repo2_show │ ├── CreateRepo2Test_repo_show │ ├── ImportRepo4Test_repo_show │ ├── MoveRepo4Test_repo2_show │ ├── RenameRepo1Test_repo_list │ ├── AddRepo3Test_gold │ ├── DropRepo5Test_gold │ ├── AddRepo11Test_repo_show │ ├── AddRepo8Test_repo_show │ ├── MoveRepo1Test_repo1_show │ ├── MoveRepo2Test_repo1_show │ ├── CopyRepo4Test_gold │ ├── MoveRepo4Test_gold │ ├── RemoveRepo2Test_repo_show │ ├── RemoveRepo4Test_gold │ ├── DropRepo2Test_gold │ ├── AddRepo1Test_repo_show │ ├── AddRepo2Test_repo_show │ ├── RemoveRepo1Test_repo_show │ ├── ListRepo2Test_gold │ ├── AddRepo4Test_repo_show │ ├── AddRepo6Test_gold │ ├── CopyRepo1Test_repo2_show │ ├── CopyRepo2Test_repo2_show │ ├── MoveRepo1Test_repo2_show │ ├── MoveRepo2Test_repo2_show │ ├── AddRepo8Test_gold │ ├── ImportRepo4Test_gold │ ├── AddRepo3Test_repo_show │ ├── CopyRepo1Test_repo1_show │ ├── CopyRepo2Test_repo1_show │ ├── CopyRepo4Test_repo1_show │ ├── MoveRepo4Test_repo1_show │ ├── ShowRepo2Test_gold │ ├── AddRepo10Test_repo_show │ ├── RemoveRepo4Test_repo_show │ ├── AddRepo5Test_gold │ ├── AddRepo9Test_gold │ ├── ImportRepo1Test_repo_show │ ├── __init__.py │ ├── ImportRepo9Test_gold │ ├── show.py │ ├── ImportRepo2Test_gold │ ├── ImportRepo2Test_repo_show │ ├── rename.py │ ├── create.py │ ├── list.py │ └── edit.py ├── t05_snapshot │ ├── ListSnapshot4Test_gold │ ├── DiffSnapshot6Test_gold │ ├── DropSnapshot1Test_gold │ ├── DropSnapshot3Test_gold │ ├── DropSnapshot7Test_gold │ ├── MergeSnapshot2Test_snapshot_diff │ ├── ListSnapshot7Test_gold │ ├── ListSnapshot3Test_gold │ ├── ListSnapshot5Test_gold │ ├── FilterSnapshot5Test_gold │ ├── MergeSnapshot11Test_gold │ ├── PullSnapshot5Test_gold │ ├── PullSnapshot6Test_gold │ ├── RenameSnapshot3Test_gold │ ├── DropSnapshot1Test_snapshot_show │ ├── DropSnapshot3Test_snapshot_show │ ├── RenameSnapshot2Test_gold │ ├── CreateSnapshot9Test_gold │ ├── DiffSnapshot4Test_gold │ ├── DiffSnapshot5Test_gold │ ├── DropSnapshot6Test_gold │ ├── ListSnapshot2Test_gold │ ├── MergeSnapshot4Test_gold │ ├── RenameSnapshot1Test_gold │ ├── SearchSnapshot2Test_gold │ ├── ShowSnapshot2Test_gold │ ├── CreateSnapshot3Test_gold │ ├── CreateSnapshot5Test_gold │ ├── CreateSnapshot8Test_gold │ ├── MergeSnapshot5Test_gold │ ├── VerifySnapshot2Test_gold │ ├── CreateSnapshot2Test_gold │ ├── CreateSnapshot7Test_gold │ ├── SearchSnapshot3Test_gold │ ├── CreateSnapshot4Test_snapshot_show │ ├── FilterSnapshot4Test_gold │ ├── FilterSnapshot6Test_gold │ ├── MergeSnapshot1Test_gold │ ├── MergeSnapshot2Test_gold │ ├── MergeSnapshot3Test_gold │ ├── MergeSnapshot6Test_gold │ ├── MergeSnapshot7Test_gold │ ├── MergeSnapshot9Test_gold │ ├── CreateSnapshot1Test_gold │ ├── CreateSnapshot4Test_gold │ ├── CreateSnapshot6Test_gold │ ├── VerifySnapshot3Test_gold │ ├── ShowSnapshot3Test_gold │ ├── FilterSnapshot1Test_gold │ ├── FilterSnapshot2Test_gold │ ├── FilterSnapshot3Test_gold │ ├── FilterSnapshot7Test_gold │ ├── DropSnapshot2Test_gold │ ├── RenameSnapshot1Test_snapshot_list │ ├── FilterSnapshot4Test_snapshot_list │ ├── CreateSnapshot6Test_snapshot_show │ ├── FilterSnapshot1Test_snapshot_show │ ├── DropSnapshot4Test_gold │ ├── DropSnapshot5Test_gold │ ├── PullSnapshot4Test_snapshot_list │ ├── __init__.py │ ├── VerifySnapshot10Test_gold │ ├── VerifySnapshot1Test_gold │ ├── ListSnapshot1Test_gold │ ├── ListSnapshot6Test_gold │ ├── FilterSnapshot2Test_snapshot_show │ ├── PullSnapshot8Test_gold │ ├── PullSnapshot12Test_gold │ ├── FilterSnapshot7Test_snapshot_show │ ├── PullSnapshot1Test_gold │ ├── PullSnapshot3Test_gold │ ├── PullSnapshot11Test_gold │ ├── show.py │ ├── PullSnapshot4Test_gold │ └── PullSnapshot7Test_gold ├── t06_publish │ ├── PublishRepo25Test_file │ ├── PublishSwitch11Test_file │ ├── PublishUpdate10Test_file │ ├── PublishSnapshot34Test_file │ ├── PublishUpdate1Test_sources │ ├── PublishUpdate7Test_binary │ ├── PublishUpdate7Test_sources2 │ ├── PublishRepo24Test │ │ ├── pyspi_0.6.1.orig.tar.gz │ │ └── pyspi_0.6.1-1.5.dsc │ ├── PublishRepo25Test │ │ ├── pyspi_0.6.1.orig.tar.gz │ │ └── pyspi_0.6.1-1.5.dsc │ ├── PublishSwitch10Test │ │ ├── pyspi_0.6.1.orig.tar.gz │ │ └── pyspi_0.6.1-1.5.dsc │ ├── PublishSwitch11Test │ │ ├── pyspi_0.6.1.orig.tar.gz │ │ └── pyspi_0.6.1-1.5.dsc │ ├── PublishUpdate10Test │ │ ├── pyspi_0.6.1.orig.tar.gz │ │ └── pyspi_0.6.1-1.5.dsc │ ├── PublishUpdate9Test │ │ ├── pyspi_0.6.1.orig.tar.gz │ │ └── pyspi_0.6.1-1.5.dsc │ ├── PublishSnapshot33Test │ │ ├── pyspi_0.6.1.orig.tar.gz │ │ └── pyspi_0.6.1-1.5.dsc │ ├── PublishSnapshot34Test │ │ ├── pyspi_0.6.1.orig.tar.gz │ │ └── pyspi_0.6.1-1.5.dsc │ ├── PublishRepo23Test_gold │ ├── PublishSwitch9Test_gold │ ├── PublishSnapshot32Test_gold │ ├── PublishRepo10Test_gold │ ├── PublishRepo8Test_gold │ ├── PublishRepo9Test_gold │ ├── PublishSnapshot11Test_gold │ ├── PublishSwitch6Test_gold │ ├── PublishSnapshot10Test_gold │ ├── PublishSnapshot9Test_gold │ ├── PublishUpdate6Test_gold │ ├── PublishRepo19Test_gold │ ├── PublishRepo22Test_gold │ ├── PublishSnapshot28Test_gold │ ├── PublishSwitch7Test_gold │ ├── PublishRepo11Test_gold │ ├── PublishSnapshot12Test_gold │ ├── PublishSnapshot31Test_gold │ ├── PublishList3Test_gold │ ├── PublishDrop6Test_gold │ ├── PublishRepo5Test_gold │ ├── PublishSnapshot18Test_gold │ ├── PublishSnapshot21Test_gold │ ├── PublishSnapshot30Test_gold │ ├── PublishSnapshot6Test_gold │ ├── PublishSwitch5Test_gold │ ├── PublishUpdate5Test_gold │ ├── PublishList1Test_gold │ ├── PublishSnapshot1Test_release_i386 │ ├── PublishRepo6Test_gold │ ├── PublishSnapshot1Test_release_amd64 │ ├── PublishRepo7Test_gold │ ├── PublishDrop1Test_gold │ ├── PublishDrop3Test_gold │ ├── PublishDrop5Test_gold │ ├── PublishDrop4Test_gold │ ├── PublishDrop2Test_gold │ ├── PublishRepo12Test_release │ ├── PublishRepo15Test_release │ ├── PublishRepo1Test_release │ ├── PublishSnapshot4Test_release │ ├── PublishUpdate1Test_release │ ├── PublishSnapshot17Test_release │ ├── PublishSnapshot24Test_release │ ├── PublishSnapshot2Test_release │ ├── PublishRepo17Test_release │ ├── PublishRepo20Test_gold │ ├── PublishSnapshot13Test_release │ ├── PublishSnapshot15Test_release │ ├── PublishSnapshot16Test_release │ ├── PublishSnapshot29Test_gold │ ├── PublishSnapshot3Test_release │ ├── PublishSwitch1Test_release │ ├── PublishSwitch8Test_release │ ├── __init__.py │ ├── PublishSnapshot26Test_release │ ├── PublishSnapshot7Test_gold │ ├── PublishSnapshot8Test_gold │ ├── PublishRepo21Test_gold │ ├── PublishSnapshot1Test_release │ ├── PublishRepo24Test_gold │ ├── PublishSwitch10Test_gold │ ├── PublishUpdate8Test_gold │ ├── PublishUpdate9Test_gold │ ├── PublishRepo13Test_gold │ ├── PublishSnapshot33Test_gold │ ├── PublishSnapshot14Test_gold │ ├── PublishUpdate4Test_gold │ ├── PublishUpdate1Test_gold │ ├── PublishUpdate2Test_gold │ ├── PublishUpdate3Test_gold │ ├── PublishUpdate7Test_gold │ ├── PublishSnapshot13Test_gold │ ├── PublishSnapshot15Test_gold │ ├── PublishSnapshot19Test_gold │ ├── PublishSwitch1Test_gold │ ├── PublishSwitch3Test_gold │ ├── PublishSwitch4Test_gold │ ├── PublishSwitch2Test_gold │ ├── PublishRepo12Test_gold │ ├── PublishSnapshot20Test_gold │ ├── PublishSnapshot22Test_gold │ ├── PublishSnapshot23Test_gold │ ├── PublishUpdate10Test_gold │ ├── PublishSwitch11Test_gold │ ├── PublishSnapshot2Test_gold │ ├── PublishSnapshot4Test_gold │ ├── PublishSnapshot1Test_gold │ ├── PublishSnapshot24Test_gold │ ├── PublishSnapshot3Test_gold │ ├── PublishRepo3Test_gold │ ├── PublishSnapshot5Test_gold │ ├── PublishSwitch8Test_gold │ ├── PublishRepo1Test_gold │ ├── PublishRepo26Test_gold │ ├── PublishSnapshot16Test_gold │ ├── PublishSnapshot17Test_gold │ ├── PublishRepo14Test_gold │ ├── PublishRepo15Test_gold │ ├── PublishRepo2Test_gold │ ├── PublishRepo4Test_gold │ ├── PublishList2Test_gold │ ├── PublishRepo17Test_gold │ ├── PublishRepo18Test_gold │ ├── PublishSnapshot26Test_gold │ ├── PublishSnapshot27Test_gold │ ├── PublishSnapshot25Test_gold │ ├── PublishSnapshot34Test_gold │ ├── PublishRepo25Test_gold │ ├── PublishRepo16Test_gold │ └── PublishRepo1Test_binary ├── t11_package │ ├── SearchPackage2Test_gold │ ├── ShowPackage2Test_gold │ ├── SearchPackage3Test_gold │ ├── SearchPackage4Test_gold │ ├── __init__.py │ ├── search.py │ └── ShowPackage3Test_gold ├── t01_version │ ├── VersionTest_gold │ └── __init__.py ├── t08_db │ ├── RecoverDB1Test_gold │ ├── RecoverDB2Test_gold │ ├── __init__.py │ ├── CleanupDB1Test_gold │ ├── CleanupDB4Test_gold │ ├── CleanupDB6Test_gold │ ├── CleanupDB7Test_gold │ ├── CleanupDB2Test_gold │ ├── CleanupDB3Test_gold │ ├── CleanupDB5Test_gold │ ├── CleanupDB8Test_gold │ ├── recover.py │ └── RecoverDB2Test_mirror_list ├── t10_task │ ├── RunTask5Test_gold │ ├── __init__.py │ ├── RunTask4Test │ │ └── task │ ├── RunTask3Test_gold │ ├── RunTask2Test_gold │ ├── RunTask4Test_gold │ ├── RunTask1Test_gold │ └── run.py ├── t07_serve │ ├── Serve2Test_gold │ ├── Serve1Test_http │ └── Serve1Test_gold ├── files │ ├── aptly.pub │ ├── aptly.sec │ ├── aptly_passphrase.pub │ ├── aptly_passphrase.sec │ ├── pyspi_0.6.1-1.3.diff.gz │ ├── pyspi_0.6.1.orig.tar.gz │ ├── debian-archive-keyring.gpg │ ├── libboost-program-options-dev_1.49.0.1_i386.deb │ ├── launchpad.key │ ├── pyspi-0.6.1-1.3.stripped.dsc │ └── flat.key ├── t02_config │ ├── ConfigInFileTest_gold │ ├── ConfigInMissingFileTest_gold │ ├── BadConfigTest_gold │ ├── aptly.conf │ └── CreateConfigTest_gold ├── gpg-gen-key └── t03_help │ └── MirrorHelpTest_gold ├── s3 ├── s3.go └── s3_test.go ├── deb ├── debian.go ├── debian_test.go ├── package_deps.go └── ppa_test.go ├── http ├── http.go └── http_test.go ├── utils ├── utils.go ├── utils_test.go ├── human.go ├── human_test.go ├── compress.go └── checksum_test.go ├── aptly └── version.go ├── main.go ├── files ├── files_test.go └── files.go ├── query ├── query_test.go └── query.go ├── mem.gp ├── console ├── terminal_bsd.go └── terminal.go ├── AUTHORS ├── cmd ├── task.go ├── package.go ├── db.go ├── repo.go ├── snapshot.go ├── version.go ├── mirror_search.go ├── repo_search.go ├── repo_copy.go ├── repo_import.go ├── db_recover.go └── run.go ├── .travis.yml └── .gitignore /system/README.rst: -------------------------------------------------------------------------------- 1 | System test for aptly -------------------------------------------------------------------------------- /system/t04_mirror/ListMirror4Test_gold: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t09_repo/ListRepo3Test_gold: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t05_snapshot/ListSnapshot4Test_gold: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo25Test_file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch11Test_file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate10Test_file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t11_package/SearchPackage2Test_gold: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t11_package/ShowPackage2Test_gold: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot34Test_file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate1Test_sources: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate7Test_binary: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate7Test_sources2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo11Test/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo8Test/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t01_version/VersionTest_gold: -------------------------------------------------------------------------------- 1 | aptly version: 0.8~dev 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo24Test/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo25Test/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch10Test/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch11Test/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate10Test/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate9Test/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t08_db/RecoverDB1Test_gold: -------------------------------------------------------------------------------- 1 | Recovering database... 2 | -------------------------------------------------------------------------------- /system/t08_db/RecoverDB2Test_gold: -------------------------------------------------------------------------------- 1 | Recovering database... 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot33Test/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot34Test/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /system/t09_repo/ListRepo4Test_gold: -------------------------------------------------------------------------------- 1 | repo1 2 | repo2 3 | repo3 4 | -------------------------------------------------------------------------------- /s3/s3.go: -------------------------------------------------------------------------------- 1 | // Package s3 handles publishing to Amazon S3 2 | package s3 3 | -------------------------------------------------------------------------------- /system/t04_mirror/test_release/dists/hardy/main/binary-amd64/Packages: -------------------------------------------------------------------------------- 1 | lala -------------------------------------------------------------------------------- /system/t05_snapshot/DiffSnapshot6Test_gold: -------------------------------------------------------------------------------- 1 | Snapshots are identical. 2 | -------------------------------------------------------------------------------- /system/t10_task/RunTask5Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: no such file, not_found 2 | 3 | -------------------------------------------------------------------------------- /system/t04_mirror/DropMirror1Test_gold: -------------------------------------------------------------------------------- 1 | Mirror `mirror1` has been removed. 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo23Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to parse command 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch9Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to parse command 2 | -------------------------------------------------------------------------------- /system/t09_repo/DropRepo1Test_gold: -------------------------------------------------------------------------------- 1 | Local repo `repo1` has been removed. 2 | -------------------------------------------------------------------------------- /system/t09_repo/DropRepo3Test_gold: -------------------------------------------------------------------------------- 1 | Local repo `repo3` has been removed. 2 | -------------------------------------------------------------------------------- /system/t04_mirror/DropMirror3Test_gold: -------------------------------------------------------------------------------- 1 | Mirror `wheezy-main` has been removed. 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/DropSnapshot1Test_gold: -------------------------------------------------------------------------------- 1 | Snapshot `snap1` has been dropped. 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/DropSnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | Snapshot `snap1` has been dropped. 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/DropSnapshot7Test_gold: -------------------------------------------------------------------------------- 1 | Snapshot `snap1` has been dropped. 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/MergeSnapshot2Test_snapshot_diff: -------------------------------------------------------------------------------- 1 | Snapshots are identical. 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot32Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to parse command 2 | -------------------------------------------------------------------------------- /system/t07_serve/Serve2Test_gold: -------------------------------------------------------------------------------- 1 | No published repositories, unable to serve. 2 | -------------------------------------------------------------------------------- /system/t11_package/SearchPackage3Test_gold: -------------------------------------------------------------------------------- 1 | nginx-full_1.2.1-2.2+wheezy2_amd64 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/ListSnapshot7Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: sorting method "planet" unknown 2 | -------------------------------------------------------------------------------- /system/t09_repo/EditRepo1Test_gold: -------------------------------------------------------------------------------- 1 | Local repo [repo1]: Lala successfully updated. 2 | -------------------------------------------------------------------------------- /system/t09_repo/EditRepo2Test_gold: -------------------------------------------------------------------------------- 1 | Local repo [repo2]: Lala successfully updated. 2 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo6Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to import: mirror not updated 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/ListSnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | snap1 2 | snap2 3 | snap3 4 | snap4 5 | snap5 6 | -------------------------------------------------------------------------------- /system/t05_snapshot/ListSnapshot5Test_gold: -------------------------------------------------------------------------------- 1 | snap2 2 | snap1 3 | snap3 4 | snap4 5 | snap5 6 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo10Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: invalid prefix ../la 2 | -------------------------------------------------------------------------------- /deb/debian.go: -------------------------------------------------------------------------------- 1 | // Package deb implements Debian-specific repository handling 2 | package deb 3 | -------------------------------------------------------------------------------- /http/http.go: -------------------------------------------------------------------------------- 1 | // Package http provides all HTTP (and FTP)-related operations 2 | package http 3 | -------------------------------------------------------------------------------- /system/files/aptly.pub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/aptly/master/system/files/aptly.pub -------------------------------------------------------------------------------- /system/files/aptly.sec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/aptly/master/system/files/aptly.sec -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo8Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: invalid prefix ppa/dists/la 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo9Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: invalid prefix ppa/pool/la 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot11Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: invalid prefix ../la 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch6Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to update: not a snapshot publish 2 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo10Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | [+] pyspi_0.6.1-1.3_source added 3 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo7Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to add: local repo with name repo7 not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo6Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to copy: source and destination are the same 2 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo7Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to copy: local repo with name repo2 not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo8Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to copy: local repo with name repo1 not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/DropRepo4Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to drop: local repo with name repo4 not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/EditRepo3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to edit: local repo with name repo3 not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo6Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to move: source and destination are the same 2 | -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo7Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to move: local repo with name repo2 not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo8Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to move: local repo with name repo1 not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/RenameRepo3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to rename: local repo repo4 already exists 2 | -------------------------------------------------------------------------------- /system/t09_repo/ShowRepo3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to show: local repo with name repo3 not found 2 | -------------------------------------------------------------------------------- /system/t10_task/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Test aptly task run 3 | """ 4 | 5 | from .run import * 6 | -------------------------------------------------------------------------------- /system/t04_mirror/DropMirror4Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to drop: mirror with name mirror1 not found 2 | -------------------------------------------------------------------------------- /system/t04_mirror/ListMirror2Test_gold: -------------------------------------------------------------------------------- 1 | No mirrors found, create one with `aptly mirror create ...`. 2 | -------------------------------------------------------------------------------- /system/t04_mirror/ShowMirror2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to show: mirror with name mirror-xx not found 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot10Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: invalid prefix ppa/pool/la 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot9Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: invalid prefix ppa/dists/la 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate6Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to update: not a local repository publish 2 | -------------------------------------------------------------------------------- /system/t09_repo/DropRepo1Test_repo-show: -------------------------------------------------------------------------------- 1 | ERROR: unable to show: local repo with name repo1 not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo7Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to import: local repo with name repo1 not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/RenameRepo1Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Local repo repo1 -> repo2 has been successfully renamed. 3 | -------------------------------------------------------------------------------- /system/t09_repo/RenameRepo2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to rename: local repo with name repo2 not found 2 | -------------------------------------------------------------------------------- /system/t02_config/ConfigInFileTest_gold: -------------------------------------------------------------------------------- 1 | No mirrors found, create one with `aptly mirror create ...`. 2 | -------------------------------------------------------------------------------- /system/t02_config/ConfigInMissingFileTest_gold: -------------------------------------------------------------------------------- 1 | ERROR: open nosuchfile.conf: no such file or directory 2 | -------------------------------------------------------------------------------- /system/t04_mirror/DropMirror1Test_mirror_show: -------------------------------------------------------------------------------- 1 | ERROR: unable to show: mirror with name mirror1 not found 2 | -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to edit: mirror with name wheezy-main not found 2 | -------------------------------------------------------------------------------- /system/t04_mirror/RenameMirror2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to rename: mirror with name wheezy-main not found 2 | -------------------------------------------------------------------------------- /system/t04_mirror/RenameMirror3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to rename: mirror wheezy-contrib already exists 2 | -------------------------------------------------------------------------------- /system/t04_mirror/SearchMirror2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to search: mirror with name mirror-xx not found 2 | -------------------------------------------------------------------------------- /system/t04_mirror/UpdateMirror2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to update: mirror with name mirror-xyz not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot5Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to filter: snapshot with name snap1 not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/MergeSnapshot11Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: -no-remove and -latest can't be specified together 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/PullSnapshot5Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to pull: snapshot with name snap-no not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/PullSnapshot6Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to pull: snapshot with name snap-no not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/RenameSnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to rename: snapshot snapshot4 already exists 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo19Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: duplicate component name: contrib 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo22Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: local repo with name repo2 not found 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot28Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: duplicate component name: main 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch7Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to switch: snapshot with name snap3 not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo8Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to import: mirror with name wheezy-main not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/ListRepo1Test_gold: -------------------------------------------------------------------------------- 1 | No local repositories found, create one with `aptly repo create ...`. 2 | -------------------------------------------------------------------------------- /system/t09_repo/RemoveRepo3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to remove: local repo with name local-repo not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/SearchRepo2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to search: local repo with name repo-xx not found 2 | -------------------------------------------------------------------------------- /system/t10_task/RunTask4Test/task: -------------------------------------------------------------------------------- 1 | repo list 2 | repo create -distribution="Cool" abc 3 | repo show abc 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/DropSnapshot1Test_snapshot_show: -------------------------------------------------------------------------------- 1 | ERROR: unable to show: snapshot with name snap1 not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/DropSnapshot3Test_snapshot_show: -------------------------------------------------------------------------------- 1 | ERROR: unable to show: snapshot with name snap1 not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/RenameSnapshot2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to rename: snapshot with name snapshot2 not found 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo11Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: local repo with name local-repo not found 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot12Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: snapshot with name snap12 not found 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot31Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: snapshot with name snap31.2 not found 2 | -------------------------------------------------------------------------------- /system/files/aptly_passphrase.pub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/aptly/master/system/files/aptly_passphrase.pub -------------------------------------------------------------------------------- /system/files/aptly_passphrase.sec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/aptly/master/system/files/aptly_passphrase.sec -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot9Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to create snapshot: local repo doesn't have packages 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/DiffSnapshot4Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to load snapshot B: snapshot with name snap-no not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/DiffSnapshot5Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to load snapshot A: snapshot with name snap-no not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/DropSnapshot6Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to drop: snapshot with name no-such-snapshot not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/ListSnapshot2Test_gold: -------------------------------------------------------------------------------- 1 | 2 | No snapshots found, create one with `aptly snapshot create...`. 3 | -------------------------------------------------------------------------------- /system/t05_snapshot/MergeSnapshot4Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to load snapshot: snapshot with name snap2 not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/RenameSnapshot1Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Snapshot snapshot1 -> snapshot2 has been successfully renamed. 3 | -------------------------------------------------------------------------------- /system/t05_snapshot/SearchSnapshot2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to search: snapshot with name snapshot-xx not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/ShowSnapshot2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to show: snapshot with name no-such-snapshot not found 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishList3Test_gold: -------------------------------------------------------------------------------- 1 | . maverick 2 | ppa/smira wheezy 3 | ppa/tr1 maverick 4 | ppa/tr2 maverick 5 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo1Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | [+] libboost-program-options-dev_1.49.0.1_i386 added 3 | -------------------------------------------------------------------------------- /system/t09_repo/CreateRepo3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to add local repo: local repo with name repo3 already exists 2 | -------------------------------------------------------------------------------- /utils/utils.go: -------------------------------------------------------------------------------- 1 | // Package utils collects various services: simple operations, compression, etc. 2 | package utils 3 | -------------------------------------------------------------------------------- /system/files/pyspi_0.6.1-1.3.diff.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/aptly/master/system/files/pyspi_0.6.1-1.3.diff.gz -------------------------------------------------------------------------------- /system/files/pyspi_0.6.1.orig.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/aptly/master/system/files/pyspi_0.6.1.orig.tar.gz -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror15Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to create mirror: components aren't supported for flat repos 2 | -------------------------------------------------------------------------------- /system/t04_mirror/RenameMirror1Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Mirror wheezy-main -> wheezy-main-cool has been successfully renamed. 3 | -------------------------------------------------------------------------------- /system/t04_mirror/SearchMirror3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to search: parsing failed: unexpected token : expecting ')' 2 | -------------------------------------------------------------------------------- /system/t04_mirror/test_release2/pool/main/a/amanda/amanda-client_3.3.1-3~bpo60+1_amd64.deb: -------------------------------------------------------------------------------- 1 | 012345678901234567890123456789 -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to add snapshot: snapshot with name snap1 already exists 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot5Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to add snapshot: snapshot with name snap5 already exists 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot8Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to add snapshot: snapshot with name snap8 already exists 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/MergeSnapshot5Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to create snapshot: snapshot with name snap1 already exists 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/VerifySnapshot2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to verify: snapshot with name no-such-snapshot not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/SearchRepo3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to search: parsing failed: unexpected token : expecting ')' 2 | -------------------------------------------------------------------------------- /system/files/debian-archive-keyring.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/aptly/master/system/files/debian-archive-keyring.gpg -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror1Test_gold: -------------------------------------------------------------------------------- 1 | Mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy successfully updated. 2 | -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror3Test_gold: -------------------------------------------------------------------------------- 1 | Mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy successfully updated. 2 | -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror5Test_gold: -------------------------------------------------------------------------------- 1 | Mirror [mirror5]: http://security.debian.org/ wheezy/updates successfully updated. 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot2Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to create snapshot: mirror with name no-such-mirror not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot7Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to create snapshot: local repo with name no-such-repo not found 2 | -------------------------------------------------------------------------------- /system/t05_snapshot/SearchSnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to search: parsing failed: unexpected token : expecting ')' 2 | -------------------------------------------------------------------------------- /system/t08_db/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Testing DB operations 3 | """ 4 | 5 | from .cleanup import * 6 | from .recover import * 7 | -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror4Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to edit: parsing failed: unexpected token |: expecting field or package name 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishDrop6Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to remove: published repo with storage:prefix/distribution ./sq1 not found 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo5Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: unable to guess distribution name, please specify explicitly 2 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo2Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | [+] pyspi_0.6.1-1.4_source added 3 | [+] pyspi_0.6.1-1.3_source added 4 | -------------------------------------------------------------------------------- /system/t11_package/SearchPackage4Test_gold: -------------------------------------------------------------------------------- 1 | 2 | coreutils_8.13-3.5_amd64 3 | coreutils_8.13-3.5_i386 4 | coreutils_8.13-3.5_source -------------------------------------------------------------------------------- /system/t11_package/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Testing package subcommands 3 | """ 4 | 5 | from .search import * 6 | from .show import * 7 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot18Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: unable to guess distribution name, please specify explicitly 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot21Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: unable to guess distribution name, please specify explicitly 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot30Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: unable to guess distribution name, please specify explicitly 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot6Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to publish: unable to guess distribution name, please specify explicitly 2 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo3Test_gold: -------------------------------------------------------------------------------- 1 | 2 | ERROR: unable to determine list of architectures, please specify explicitly 3 | Loading packages... -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo3Test_gold: -------------------------------------------------------------------------------- 1 | 2 | ERROR: unable to determine list of architectures, please specify explicitly 3 | Loading packages... -------------------------------------------------------------------------------- /system/t09_repo/RemoveRepo1Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Loading packages... 3 | [-] pyspi_0.6.1-1.3_source removed 4 | [-] pyspi_0.6.1-1.4_source removed -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot4Test_snapshot_show: -------------------------------------------------------------------------------- 1 | Name: snap4 2 | Description: Created as empty 3 | Number of packages: 0 4 | Packages: 5 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch5Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to update: published repo with storage:prefix/distribution ppa/maverick not found 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate5Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to update: published repo with storage:prefix/distribution ppa/maverick not found 2 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo3Test_gold: -------------------------------------------------------------------------------- 1 | 2 | ERROR: unable to determine list of architectures, please specify explicitly 3 | Loading packages... -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo5Test_gold: -------------------------------------------------------------------------------- 1 | 2 | ERROR: unable to copy: parsing failed: unexpected token >>: expecting end of query 3 | Loading packages... -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo1Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Loading packages... 3 | [o] nginx_1.2.1-2.2+wheezy2_all imported 4 | [o] unpaper_0.4.2-1_amd64 imported -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo5Test_gold: -------------------------------------------------------------------------------- 1 | 2 | ERROR: unable to move: parsing failed: unexpected token >>: expecting end of query 3 | Loading packages... -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror23Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: unable to create mirror: parsing failed: unexpected token : expecting field or package name 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishList1Test_gold: -------------------------------------------------------------------------------- 1 | No snapshots/local repos have been published. Publish a snapshot by running `aptly publish snapshot ...`. 2 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo4Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | [+] libboost-program-options-dev_1.49.0.1_i386 added 3 | [+] pyspi_0.6.1-1.3_source added 4 | -------------------------------------------------------------------------------- /system/t09_repo/CreateRepo1Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: 3 | Default Distribution: 4 | Default Component: main 5 | Number of packages: 0 6 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo5Test_gold: -------------------------------------------------------------------------------- 1 | 2 | ERROR: unable to import: parsing failed: unexpected token >>: expecting end of query 3 | Loading packages... -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo1Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Loading packages... 3 | [o] libboost-program-options-dev_1.49.0.1_i386 moved 4 | [o] pyspi_0.6.1-1.4_source moved -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo2Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Loading packages... 3 | [o] libboost-program-options-dev_1.49.0.1_i386 moved 4 | [o] pyspi_0.6.1-1.4_source moved -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot4Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages (4742)... 2 | Building indexes... 3 | 4 | Not creating snapshot, as dry run was requested. 5 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo1Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Loading packages... 3 | [o] libboost-program-options-dev_1.49.0.1_i386 copied 4 | [o] pyspi_0.6.1-1.4_source copied -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo2Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Loading packages... 3 | [o] libboost-program-options-dev_1.49.0.1_i386 copied 4 | [o] pyspi_0.6.1-1.4_source copied -------------------------------------------------------------------------------- /system/t09_repo/CreateRepo1Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Local repo [repo1] successfully added. 3 | You can run 'aptly repo add repo1 ...' to add packages to repository. 4 | -------------------------------------------------------------------------------- /system/t09_repo/EditRepo1Test_repo-show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Lala 3 | Default Distribution: 4 | Default Component: main 5 | Number of packages: 0 6 | -------------------------------------------------------------------------------- /system/t09_repo/RemoveRepo2Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Loading packages... 3 | [-] libboost-program-options-dev_1.49.0.1_i386 removed 4 | [-] pyspi_0.6.1-1.4_source removed -------------------------------------------------------------------------------- /system/t09_repo/ShowRepo1Test_gold: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 0 6 | -------------------------------------------------------------------------------- /aptly/version.go: -------------------------------------------------------------------------------- 1 | package aptly 2 | 3 | // Version of aptly 4 | const Version = "0.8~dev" 5 | 6 | // Enable debugging features? 7 | const EnableDebug = false 8 | -------------------------------------------------------------------------------- /system/t02_config/BadConfigTest_gold: -------------------------------------------------------------------------------- 1 | ERROR: error loading config file ${HOME}/.aptly.conf: invalid character 's' looking for beginning of object key string 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot1Test_release_i386: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Architecture: i386 4 | Archive: maverick 5 | Component: main 6 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo5Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo5 2 | Comment: Repo5 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 0 6 | -------------------------------------------------------------------------------- /system/t09_repo/EditRepo2Test_repo-show: -------------------------------------------------------------------------------- 1 | Name: repo2 2 | Comment: Lala 3 | Default Distribution: wheezy 4 | Default Component: contrib 5 | Number of packages: 0 6 | -------------------------------------------------------------------------------- /system/files/libboost-program-options-dev_1.49.0.1_i386.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/aptly/master/system/files/libboost-program-options-dev_1.49.0.1_i386.deb -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo6Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: prefix/distribution already used by another published repo: ./maverick [i386, source] publishes {main: [local-repo]} 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot1Test_release_amd64: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Architecture: amd64 4 | Archive: maverick 5 | Component: main 6 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo7Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: prefix/distribution already used by another published repo: ppa/maverick [i386, source] publishes {main: [local-repo]} 2 | -------------------------------------------------------------------------------- /system/t09_repo/CreateRepo2Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Local repo [repo2]: Repository2 successfully added. 3 | You can run 'aptly repo add repo2 ...' to add packages to repository. 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot6Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages (56121)... 2 | Building indexes... 3 | ERROR: unable to create snapshot: snapshot with name snap2 already exists 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/MergeSnapshot1Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Snapshot snap3 successfully created. 3 | You can run 'aptly publish snapshot snap3' to publish snapshot as Debian repository. 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/MergeSnapshot2Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Snapshot snap2 successfully created. 3 | You can run 'aptly publish snapshot snap2' to publish snapshot as Debian repository. 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/MergeSnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Snapshot snap4 successfully created. 3 | You can run 'aptly publish snapshot snap4' to publish snapshot as Debian repository. 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/MergeSnapshot6Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Snapshot snap4 successfully created. 3 | You can run 'aptly publish snapshot snap4' to publish snapshot as Debian repository. 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/MergeSnapshot7Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Snapshot snap4 successfully created. 3 | You can run 'aptly publish snapshot snap4' to publish snapshot as Debian repository. 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/MergeSnapshot9Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Snapshot snap4 successfully created. 3 | You can run 'aptly publish snapshot snap4' to publish snapshot as Debian repository. 4 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo11Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | [-] pyspi_0.6.1-1.3_source removed due to conflict with package being added 3 | [+] pyspi_0.6.1-1.3_source added 4 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo4Test_repo2_show: -------------------------------------------------------------------------------- 1 | Name: repo2 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 0 6 | Packages: 7 | -------------------------------------------------------------------------------- /system/t09_repo/CreateRepo2Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo2 2 | Comment: Repository2 3 | Default Distribution: maverick 4 | Default Component: non-free 5 | Number of packages: 0 6 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo4Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 0 6 | Packages: 7 | -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo4Test_repo2_show: -------------------------------------------------------------------------------- 1 | Name: repo2 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 0 6 | Packages: 7 | -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot1Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Snapshot snap1 successfully created. 3 | You can run 'aptly publish snapshot snap1' to publish snapshot as Debian repository. 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot4Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Snapshot snap4 successfully created. 3 | You can run 'aptly publish snapshot snap4' to publish snapshot as Debian repository. 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot6Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Snapshot snap6 successfully created. 3 | You can run 'aptly publish snapshot snap6' to publish snapshot as Debian repository. 4 | -------------------------------------------------------------------------------- /system/t07_serve/Serve1Test_http: -------------------------------------------------------------------------------- 1 |
2 | debian/
3 | dists/
4 | multi/
5 | pool/
6 | 
7 | -------------------------------------------------------------------------------- /system/t09_repo/RenameRepo1Test_repo_list: -------------------------------------------------------------------------------- 1 | List of local repos: 2 | * [repo2] (packages: 0) 3 | 4 | To get more information about local repository, run `aptly repo show `. 5 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror8Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | ERROR: unable to add mirror: mirror with name mirror8 already exists 3 | -------------------------------------------------------------------------------- /system/t06_publish/PublishDrop1Test_gold: -------------------------------------------------------------------------------- 1 | Removing ${HOME}/.aptly/public/dists... 2 | Removing ${HOME}/.aptly/public/pool... 3 | 4 | Published repository has been removed successfully. 5 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo3Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | [+] libboost-program-options-dev_1.49.0.1_i386 added 3 | [+] pyspi_0.6.1-1.4_source added 4 | [+] pyspi_0.6.1-1.3_source added 5 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/smira/aptly/cmd" 5 | "os" 6 | ) 7 | 8 | func main() { 9 | os.Exit(cmd.Run(cmd.RootCommand(), os.Args[1:], true)) 10 | } 11 | -------------------------------------------------------------------------------- /system/t09_repo/DropRepo5Test_gold: -------------------------------------------------------------------------------- 1 | Local repo `repo5` is published currently: 2 | * ./squeeze [i386, source] publishes {main: [repo5]} 3 | ERROR: unable to drop: local repo is published 4 | -------------------------------------------------------------------------------- /s3/s3_test.go: -------------------------------------------------------------------------------- 1 | package s3 2 | 3 | import ( 4 | . "launchpad.net/gocheck" 5 | "testing" 6 | ) 7 | 8 | // Launch gocheck tests 9 | func Test(t *testing.T) { 10 | TestingT(t) 11 | } 12 | -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror6Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | Mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy successfully updated. 3 | -------------------------------------------------------------------------------- /system/t05_snapshot/VerifySnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Verifying... 3 | Missing dependencies (3): 4 | kbdcontrol [i386] 5 | samba4 (>= 4.0.0~) [i386] 6 | vidcontrol [i386] 7 | -------------------------------------------------------------------------------- /system/t06_publish/PublishDrop3Test_gold: -------------------------------------------------------------------------------- 1 | Removing ${HOME}/.aptly/public/dists/sq1... 2 | Cleaning up prefix "." components main... 3 | 4 | Published repository has been removed successfully. 5 | -------------------------------------------------------------------------------- /system/t06_publish/PublishDrop5Test_gold: -------------------------------------------------------------------------------- 1 | Removing ${HOME}/.aptly/public/dists/sq2... 2 | Cleaning up prefix "." components main... 3 | 4 | Published repository has been removed successfully. 5 | -------------------------------------------------------------------------------- /deb/debian_test.go: -------------------------------------------------------------------------------- 1 | package deb 2 | 3 | import ( 4 | . "launchpad.net/gocheck" 5 | "testing" 6 | ) 7 | 8 | // Launch gocheck tests 9 | func Test(t *testing.T) { 10 | TestingT(t) 11 | } 12 | -------------------------------------------------------------------------------- /http/http_test.go: -------------------------------------------------------------------------------- 1 | package http 2 | 3 | import ( 4 | . "launchpad.net/gocheck" 5 | "testing" 6 | ) 7 | 8 | // Launch gocheck tests 9 | func Test(t *testing.T) { 10 | TestingT(t) 11 | } 12 | -------------------------------------------------------------------------------- /system/t06_publish/PublishDrop4Test_gold: -------------------------------------------------------------------------------- 1 | Removing ${HOME}/.aptly/public/dists/sq1... 2 | Removing ${HOME}/.aptly/public/pool/contrib... 3 | 4 | Published repository has been removed successfully. 5 | -------------------------------------------------------------------------------- /files/files_test.go: -------------------------------------------------------------------------------- 1 | package files 2 | 3 | import ( 4 | . "launchpad.net/gocheck" 5 | "testing" 6 | ) 7 | 8 | // Launch gocheck tests 9 | func Test(t *testing.T) { 10 | TestingT(t) 11 | } 12 | -------------------------------------------------------------------------------- /query/query_test.go: -------------------------------------------------------------------------------- 1 | package query 2 | 3 | import ( 4 | . "launchpad.net/gocheck" 5 | "testing" 6 | ) 7 | 8 | // Launch gocheck tests 9 | func Test(t *testing.T) { 10 | TestingT(t) 11 | } 12 | -------------------------------------------------------------------------------- /system/t06_publish/PublishDrop2Test_gold: -------------------------------------------------------------------------------- 1 | Removing ${HOME}/.aptly/public/ppa/smira/dists... 2 | Removing ${HOME}/.aptly/public/ppa/smira/pool... 3 | 4 | Published repository has been removed successfully. 5 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo11Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo11 2 | Comment: Repo11 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 1 6 | Packages: 7 | pyspi_0.6.1-1.3_source 8 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo8Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo8 2 | Comment: Repo8 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 1 6 | Packages: 7 | pyspi_0.6.1-1.3_source 8 | -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo1Test_repo1_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 1 6 | Packages: 7 | pyspi_0.6.1-1.3_source 8 | -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo2Test_repo1_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 1 6 | Packages: 7 | pyspi_0.6.1-1.3_source 8 | -------------------------------------------------------------------------------- /utils/utils_test.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | import ( 4 | . "launchpad.net/gocheck" 5 | "testing" 6 | ) 7 | 8 | // Launch gocheck tests 9 | func Test(t *testing.T) { 10 | TestingT(t) 11 | } 12 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo4Test_gold: -------------------------------------------------------------------------------- 1 | 2 | 3 | Changes not saved, as dry run has been requested. 4 | Loading packages... 5 | [o] libboost-program-options-dev_1.49.0.1_i386 copied 6 | [o] pyspi_0.6.1-1.4_source copied -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo4Test_gold: -------------------------------------------------------------------------------- 1 | 2 | 3 | Changes not saved, as dry run has been requested. 4 | Loading packages... 5 | [o] libboost-program-options-dev_1.49.0.1_i386 moved 6 | [o] pyspi_0.6.1-1.4_source moved -------------------------------------------------------------------------------- /system/t09_repo/RemoveRepo2Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: local-repo 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 1 6 | Packages: 7 | pyspi_0.6.1-1.3_source 8 | -------------------------------------------------------------------------------- /system/t09_repo/RemoveRepo4Test_gold: -------------------------------------------------------------------------------- 1 | 2 | 3 | Changes not saved, as dry run has been requested. 4 | Loading packages... 5 | [-] libboost-program-options-dev_1.49.0.1_i386 removed 6 | [-] pyspi_0.6.1-1.4_source removed -------------------------------------------------------------------------------- /system/t05_snapshot/ShowSnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | Name: snap1 2 | Created At: 2014-01-24 13:06:43 MSK 3 | Description: Snapshot from mirror [wheezy-non-free]: http://mirror.yandex.ru/debian/ wheezy 4 | Number of packages: 661 5 | -------------------------------------------------------------------------------- /system/t09_repo/DropRepo2Test_gold: -------------------------------------------------------------------------------- 1 | Local repo `repo2` was used to create following snapshots: 2 | * [local]: Snapshot from local repo [repo2] 3 | ERROR: won't delete local repo with snapshots, use -force to override 4 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo1Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Repo1 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 1 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror4Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | ERROR: unable to fetch mirror: component life not available in repo [mirror4]: http://mirror.yandex.ru/debian/ wheezy 3 | -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror7Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | ERROR: unable to edit: architecture x56 not available in repo [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 3 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo2Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo2 2 | Comment: Repo2 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 2 6 | Packages: 7 | pyspi_0.6.1-1.3_source 8 | pyspi_0.6.1-1.4_source 9 | -------------------------------------------------------------------------------- /system/t09_repo/RemoveRepo1Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: local-repo 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 1 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror5Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | ERROR: unable to fetch mirror: architecture nano68 not available in repo [mirror5]: http://mirror.yandex.ru/debian/ wheezy 3 | -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot1Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages (661)... 2 | Building indexes... 3 | 4 | Snapshot snap2 successfully filtered. 5 | You can run 'aptly publish snapshot snap2' to publish snapshot as Debian repository. 6 | -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot2Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages (4742)... 2 | Building indexes... 3 | 4 | Snapshot snap2 successfully filtered. 5 | You can run 'aptly publish snapshot snap2' to publish snapshot as Debian repository. 6 | -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages (56121)... 2 | Building indexes... 3 | 4 | Snapshot snap2 successfully filtered. 5 | You can run 'aptly publish snapshot snap2' to publish snapshot as Debian repository. 6 | -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot7Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages (5550)... 2 | Building indexes... 3 | 4 | Snapshot snap2 successfully filtered. 5 | You can run 'aptly publish snapshot snap2' to publish snapshot as Debian repository. 6 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo12Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo15Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: label15 3 | Codename: maverick 4 | Architectures: i386 5 | Components: contrib 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo1Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot4Test_release: -------------------------------------------------------------------------------- 1 | Origin: . squeeze 2 | Label: . squeeze 3 | Codename: squeeze 4 | Architectures: i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate1Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror16Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | ERROR: unable to fetch mirror: architecture source not available in repo [mirror16]: http://mirror.yandex.ru/debian/ wheezy 3 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot17Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot24Test_release: -------------------------------------------------------------------------------- 1 | Origin: aptly24 2 | Label: . squeeze 3 | Codename: squeeze 4 | Architectures: amd64 i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot2Test_release: -------------------------------------------------------------------------------- 1 | Origin: . squeeze 2 | Label: . squeeze 3 | Codename: squeeze 4 | Architectures: amd64 i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo17Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: i386 5 | Components: contrib main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo20Test_gold: -------------------------------------------------------------------------------- 1 | Warning: publishing from empty source, architectures list should be complete, it can't be changed after publishing (use -architectures flag) 2 | ERROR: unable to publish: duplicate component name: b 3 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot13Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: amd64 i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot15Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: amd64 i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot16Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: amd64 i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot29Test_gold: -------------------------------------------------------------------------------- 1 | Warning: publishing from empty source, architectures list should be complete, it can't be changed after publishing (use -architectures flag) 2 | ERROR: unable to publish: duplicate component name: b 3 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot3Test_release: -------------------------------------------------------------------------------- 1 | Origin: . squeeze 2 | Label: . squeeze 3 | Codename: squeeze 4 | Architectures: amd64 i386 5 | Components: contrib 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch1Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: amd64 i386 5 | Components: main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch8Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: amd64 i386 5 | Components: a b c 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t06_publish/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Testing publishing snapshots 3 | """ 4 | 5 | from .drop import * 6 | from .list import * 7 | from .repo import * 8 | from .snapshot import * 9 | from .switch import * 10 | from .update import * 11 | -------------------------------------------------------------------------------- /system/t09_repo/ListRepo2Test_gold: -------------------------------------------------------------------------------- 1 | List of local repos: 2 | * [repo1] (packages: 0) 3 | * [repo2]: Cool2 (packages: 0) 4 | * [repo3]: Cool3 (packages: 0) 5 | 6 | To get more information about local repository, run `aptly repo show `. 7 | -------------------------------------------------------------------------------- /system/t01_version/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Test aptly version 3 | """ 4 | 5 | from lib import BaseTest 6 | 7 | 8 | class VersionTest(BaseTest): 9 | """ 10 | version should match 11 | """ 12 | 13 | runCmd = "aptly version" 14 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo4Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo4 2 | Comment: Repo4 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 2 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.3_source 9 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo6Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | [!] Unable to process no-such-file: stat no-such-file: no such file or directory 3 | [!] Some files were skipped due to errors: 4 | no-such-file 5 | ERROR: some files failed to be added 6 | -------------------------------------------------------------------------------- /system/t05_snapshot/DropSnapshot2Test_gold: -------------------------------------------------------------------------------- 1 | Snapshot `snap1` was used as a source in following snapshots: 2 | * [snap2]: Merged from sources: 'snap1' 3 | ERROR: won't delete snapshot that was used as source for other snapshots, use -force to override 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/RenameSnapshot1Test_snapshot_list: -------------------------------------------------------------------------------- 1 | List of snapshots: 2 | * [snapshot2]: Snapshot from mirror [wheezy-contrib]: http://mirror.yandex.ru/debian/ wheezy 3 | 4 | To get more information about snapshot, run `aptly snapshot show `. 5 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot26Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Architectures: amd64 i386 5 | Components: contrib main 6 | Description: Generated by aptly 7 | MD5Sum: 8 | SHA1: 9 | SHA256: 10 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo1Test_repo2_show: -------------------------------------------------------------------------------- 1 | Name: repo2 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 2 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.4_source 9 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo2Test_repo2_show: -------------------------------------------------------------------------------- 1 | Name: repo2 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 2 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.4_source 9 | -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo1Test_repo2_show: -------------------------------------------------------------------------------- 1 | Name: repo2 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 2 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.4_source 9 | -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo2Test_repo2_show: -------------------------------------------------------------------------------- 1 | Name: repo2 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 2 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.4_source 9 | -------------------------------------------------------------------------------- /system/t04_mirror/DropMirror2Test_gold: -------------------------------------------------------------------------------- 1 | Mirror `wheezy-main` was used to create following snapshots: 2 | * [wheez]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 3 | ERROR: won't delete mirror with snapshots, use -force to override 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot4Test_snapshot_list: -------------------------------------------------------------------------------- 1 | List of snapshots: 2 | * [snap1]: Snapshot from mirror [wheezy-backports]: http://mirror.yandex.ru/debian/ wheezy-backports 3 | 4 | To get more information about snapshot, run `aptly snapshot show `. 5 | -------------------------------------------------------------------------------- /system/t05_snapshot/CreateSnapshot6Test_snapshot_show: -------------------------------------------------------------------------------- 1 | Name: snap6 2 | Description: Snapshot from local repo [local-repo] 3 | Number of packages: 3 4 | Packages: 5 | libboost-program-options-dev_1.49.0.1_i386 6 | pyspi_0.6.1-1.3_source 7 | pyspi_0.6.1-1.4_source 8 | -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot1Test_snapshot_show: -------------------------------------------------------------------------------- 1 | Name: snap2 2 | Description: Filtered 'snap1', query was: 'mame unrar' 3 | Number of packages: 4 4 | Packages: 5 | mame_0.146-5_amd64 6 | unrar_1:4.1.4-1_amd64 7 | mame_0.146-5_i386 8 | unrar_1:4.1.4-1_i386 9 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot7Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: prefix/distribution already used by another published repo: ./maverick [amd64, i386] publishes {main: [snap7]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick} 2 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot8Test_gold: -------------------------------------------------------------------------------- 1 | ERROR: prefix/distribution already used by another published repo: ppa/maverick [amd64, i386] publishes {main: [snap8]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick} 2 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror1Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | 3 | Mirror [mirror1]: http://mirror.yandex.ru/debian/ wheezy successfully added. 4 | You can run 'aptly mirror update mirror1' to download repository contents. 5 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror2Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | 3 | Mirror [mirror2]: http://mirror.yandex.ru/debian/ wheezy successfully added. 4 | You can run 'aptly mirror update mirror2' to download repository contents. 5 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror3Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | 3 | Mirror [mirror3]: http://mirror.yandex.ru/debian/ wheezy successfully added. 4 | You can run 'aptly mirror update mirror3' to download repository contents. 5 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror7Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | 3 | Mirror [mirror7]: http://mirror.yandex.ru/debian/ wheezy successfully added. 4 | You can run 'aptly mirror update mirror7' to download repository contents. 5 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo21Test_gold: -------------------------------------------------------------------------------- 1 | Warning: publishing from empty source, architectures list should be complete, it can't be changed after publishing (use -architectures flag) 2 | ERROR: unable to publish: unable to guess distribution name, please specify explicitly 3 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror13Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | 3 | Mirror [mirror13]: http://mirror.yandex.ru/debian/ wheezy successfully added. 4 | You can run 'aptly mirror update mirror13' to download repository contents. 5 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror17Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/wheezy/Release... 2 | 3 | Mirror [mirror17]: http://mirror.yandex.ru/debian/ wheezy [src] successfully added. 4 | You can run 'aptly mirror update mirror17' to download repository contents. 5 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror22Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://security.debian.org/dists/wheezy/updates/Release... 2 | 3 | Mirror [mirror22]: http://security.debian.org/ wheezy/updates successfully added. 4 | You can run 'aptly mirror update mirror22' to download repository contents. 5 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot1Test_release: -------------------------------------------------------------------------------- 1 | Origin: . maverick 2 | Label: . maverick 3 | Codename: maverick 4 | Date: Fri, 31 Jan 2014 14:18:52 UTC 5 | Architectures: amd64 i386 6 | Components: main 7 | Description: Generated by aptly 8 | MD5Sum: 9 | SHA1: 10 | SHA256: 11 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo8Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | [!] Unable to add package to repo pyspi_0.6.1-1.3_source: conflict in package pyspi_0.6.1-1.3_source 3 | [!] Some files were skipped due to errors: 4 | /pyspi_0.6.1-1.3.conflict.dsc 5 | ERROR: some files failed to be added 6 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo4Test_gold: -------------------------------------------------------------------------------- 1 | 2 | 3 | Changes not saved, as dry run has been requested. 4 | Loading packages... 5 | [o] redeclipse-dbg_1.2-3_amd64 imported 6 | [o] redeclipse-dbg_1.2-3_i386 imported 7 | [o] redeclipse_1.2-3_amd64 imported 8 | [o] redeclipse_1.2-3_i386 imported -------------------------------------------------------------------------------- /system/t04_mirror/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Testing mirror management 3 | """ 4 | 5 | from .create import * 6 | from .show import * 7 | from .list import * 8 | from .update import * 9 | from .drop import * 10 | from .rename import * 11 | from .edit import * 12 | from .search import * 13 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo3Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo3 2 | Comment: Repo3 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 3 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.3_source 9 | pyspi_0.6.1-1.4_source 10 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo1Test_repo1_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 3 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.3_source 9 | pyspi_0.6.1-1.4_source 10 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo2Test_repo1_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 3 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.3_source 9 | pyspi_0.6.1-1.4_source 10 | -------------------------------------------------------------------------------- /system/t09_repo/CopyRepo4Test_repo1_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 3 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.3_source 9 | pyspi_0.6.1-1.4_source 10 | -------------------------------------------------------------------------------- /system/t09_repo/MoveRepo4Test_repo1_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 3 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.3_source 9 | pyspi_0.6.1-1.4_source 10 | -------------------------------------------------------------------------------- /system/t09_repo/ShowRepo2Test_gold: -------------------------------------------------------------------------------- 1 | Name: repo2 2 | Comment: Cool 3 | Default Distribution: wheezy 4 | Default Component: contrib 5 | Number of packages: 3 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.3_source 9 | pyspi_0.6.1-1.4_source 10 | -------------------------------------------------------------------------------- /mem.gp: -------------------------------------------------------------------------------- 1 | set output 'mem.png' 2 | set term png 3 | set key box left 4 | set xlabel "Time (msec)" 5 | set ylabel "Mem (MB)" 6 | plot "mem.dat" using 1:($2/1e6) title 'HeapSys' with lines, "mem.dat" using 1:($3/1e6) title 'HeapAlloc' with lines, "mem.dat" using 1:($4/1e6) title 'HeapIdle' with lines -------------------------------------------------------------------------------- /system/t09_repo/AddRepo10Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo10 2 | Comment: Repo10 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 3 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.3_source 9 | pyspi_0.6.1-1.4_source 10 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror6Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/suslik/InRelease... 2 | Downloading http://mirror.yandex.ru/debian/dists/suslik/Release... 3 | ERROR: unable to fetch mirror: HTTP code 404 while fetching http://mirror.yandex.ru/debian/dists/suslik/Release 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/DropSnapshot4Test_gold: -------------------------------------------------------------------------------- 1 | Snapshot `snap1` is published currently: 2 | * ./maverick [amd64, i386] publishes {main: [snap1]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick} 3 | ERROR: unable to drop: snapshot is published 4 | -------------------------------------------------------------------------------- /system/t05_snapshot/DropSnapshot5Test_gold: -------------------------------------------------------------------------------- 1 | Snapshot `snap1` is published currently: 2 | * ./maverick [amd64, i386] publishes {main: [snap1]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick} 3 | ERROR: unable to drop: snapshot is published 4 | -------------------------------------------------------------------------------- /system/t09_repo/RemoveRepo4Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: local-repo 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 3 6 | Packages: 7 | libboost-program-options-dev_1.49.0.1_i386 8 | pyspi_0.6.1-1.3_source 9 | pyspi_0.6.1-1.4_source 10 | -------------------------------------------------------------------------------- /console/terminal_bsd.go: -------------------------------------------------------------------------------- 1 | // +build freebsd 2 | 3 | package console 4 | 5 | // RunningOnTerminal checks whether stdout is terminal 6 | // 7 | // Stub for FreeBSD, until in go1.3 terminal.IsTerminal would start working for FreeBSD 8 | func RunningOnTerminal() bool { 9 | return false 10 | } 11 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo24Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | ERROR: unable to publish: unable to process packages: error linking file to ${HOME}/.aptly/public/pool/main/p/pyspi/pyspi_0.6.1.orig.tar.gz: file already exists and is different 4 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch10Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | ERROR: unable to publish: unable to process packages: error linking file to ${HOME}/.aptly/public/pool/main/p/pyspi/pyspi_0.6.1.orig.tar.gz: file already exists and is different 4 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate8Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Cleaning up prefix "." components contrib, main... 4 | 5 | Publish for local repo ./squeeze [i386] publishes {contrib: [repo2]}, {main: [repo1]} has been successfully updated. 6 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate9Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | ERROR: unable to publish: unable to process packages: error linking file to ${HOME}/.aptly/public/pool/main/p/pyspi/pyspi_0.6.1.orig.tar.gz: file already exists and is different 4 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | List of contributors, in chronological order: 2 | 3 | * Andrey Smirnov (https://github.com/smira) 4 | * Sebastien Binet (https://github.com/sbinet) 5 | * Ryan Uber (https://github.com/ryanuber) 6 | * Simon Aquino (https://github.com/simonaquino) 7 | * Vincent Batoufflet (https://github.com/vbatoufflet) -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo13Test_gold: -------------------------------------------------------------------------------- 1 | Warning: publishing from empty source, architectures list should be complete, it can't be changed after publishing (use -architectures flag) 2 | Loading packages... 3 | ERROR: unable to publish: unable to figure out list of architectures, please supply explicit list 4 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot33Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | ERROR: unable to publish: unable to process packages: error linking file to ${HOME}/.aptly/public/pool/main/p/pyspi/pyspi_0.6.1.orig.tar.gz: file already exists and is different 4 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo5Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | [!] Unable to import file /02/03/pyspi_0.6.1-1.3.diff.gz into pool: open /02/03/pyspi_0.6.1-1.3.diff.gz: no such file or directory 3 | [!] Some files were skipped due to errors: 4 | /02/03/pyspi_0.6.1-1.3.dsc 5 | ERROR: some files failed to be added 6 | -------------------------------------------------------------------------------- /system/t04_mirror/ListMirror3Test_gold: -------------------------------------------------------------------------------- 1 | gnuplot-maverick 2 | gnuplot-maverick-src 3 | sensu 4 | wheezy-backports 5 | wheezy-backports-src 6 | wheezy-contrib 7 | wheezy-contrib-src 8 | wheezy-main 9 | wheezy-main-src 10 | wheezy-non-free 11 | wheezy-non-free-src 12 | wheezy-updates 13 | wheezy-updates-src 14 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot14Test_gold: -------------------------------------------------------------------------------- 1 | Warning: publishing from empty source, architectures list should be complete, it can't be changed after publishing (use -architectures flag) 2 | Loading packages... 3 | ERROR: unable to publish: unable to figure out list of architectures, please supply explicit list 4 | -------------------------------------------------------------------------------- /console/terminal.go: -------------------------------------------------------------------------------- 1 | // +build !freebsd 2 | 3 | package console 4 | 5 | import ( 6 | "code.google.com/p/go.crypto/ssh/terminal" 7 | "syscall" 8 | ) 9 | 10 | // RunningOnTerminal checks whether stdout is terminal 11 | func RunningOnTerminal() bool { 12 | return terminal.IsTerminal(syscall.Stdout) 13 | } 14 | -------------------------------------------------------------------------------- /system/t02_config/aptly.conf: -------------------------------------------------------------------------------- 1 | { 2 | "rootDir": "/tmp/aptly", 3 | "downloadConcurrency": 4, 4 | "architectures": [], 5 | "dependencyFollowSuggests": false, 6 | "dependencyFollowRecommends": false, 7 | "dependencyFollowAllVariants": false, 8 | "gpgDisableSign": false, 9 | "gpgDisableVerify": false 10 | } -------------------------------------------------------------------------------- /system/t08_db/CleanupDB1Test_gold: -------------------------------------------------------------------------------- 1 | Loading mirrors, local repos and snapshots... 2 | Loading list of all packages... 3 | Deleting unreferenced packages (0)... 4 | Building list of files referenced by packages... 5 | Building list of files in package pool... 6 | Deleting unreferenced files (0)... 7 | Compacting database... 8 | -------------------------------------------------------------------------------- /system/t08_db/CleanupDB4Test_gold: -------------------------------------------------------------------------------- 1 | Loading mirrors, local repos and snapshots... 2 | Loading list of all packages... 3 | Deleting unreferenced packages (0)... 4 | Building list of files referenced by packages... 5 | Building list of files in package pool... 6 | Deleting unreferenced files (0)... 7 | Compacting database... 8 | -------------------------------------------------------------------------------- /system/t08_db/CleanupDB6Test_gold: -------------------------------------------------------------------------------- 1 | Loading mirrors, local repos and snapshots... 2 | Loading list of all packages... 3 | Deleting unreferenced packages (0)... 4 | Building list of files referenced by packages... 5 | Building list of files in package pool... 6 | Deleting unreferenced files (0)... 7 | Compacting database... 8 | -------------------------------------------------------------------------------- /system/t08_db/CleanupDB7Test_gold: -------------------------------------------------------------------------------- 1 | Loading mirrors, local repos and snapshots... 2 | Loading list of all packages... 3 | Deleting unreferenced packages (0)... 4 | Building list of files referenced by packages... 5 | Building list of files in package pool... 6 | Deleting unreferenced files (0)... 7 | Compacting database... 8 | -------------------------------------------------------------------------------- /system/t08_db/CleanupDB2Test_gold: -------------------------------------------------------------------------------- 1 | Loading mirrors, local repos and snapshots... 2 | Loading list of all packages... 3 | Deleting unreferenced packages (73270)... 4 | Building list of files referenced by packages... 5 | Building list of files in package pool... 6 | Deleting unreferenced files (0)... 7 | Compacting database... 8 | -------------------------------------------------------------------------------- /cmd/task.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/smira/commander" 5 | ) 6 | 7 | func makeCmdTask() *commander.Command { 8 | return &commander.Command{ 9 | UsageLine: "task", 10 | Short: "manage aptly tasks", 11 | Subcommands: []*commander.Command{ 12 | makeCmdTaskRun(), 13 | }, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo9Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | [!] Unable to import file /pyspi_0.6.1.orig.tar.gz into pool: unable to import into pool: file ${HOME}/.aptly/pool/de/f3/pyspi_0.6.1.orig.tar.gz already exists 3 | [!] Some files were skipped due to errors: 4 | /pyspi_0.6.1-1.3.dsc 5 | ERROR: some files failed to be added 6 | -------------------------------------------------------------------------------- /system/gpg-gen-key: -------------------------------------------------------------------------------- 1 | Key-Type: DSA 2 | Key-Length: 1024 3 | Subkey-Type: ELG-E 4 | Subkey-Length: 1024 5 | Name-Real: Aptly Tester 6 | Name-Comment: don't use it 7 | Name-Email: test@aptly.info 8 | Expire-Date: 0 9 | %pubring aptly.pub 10 | %secring aptly.sec 11 | # Do a commit here, so that we can later print "done" :-) 12 | %commit 13 | %echo done -------------------------------------------------------------------------------- /system/t05_snapshot/PullSnapshot4Test_snapshot_list: -------------------------------------------------------------------------------- 1 | List of snapshots: 2 | * [snap1]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 3 | * [snap2]: Snapshot from mirror [wheezy-backports]: http://mirror.yandex.ru/debian/ wheezy-backports 4 | 5 | To get more information about snapshot, run `aptly snapshot show `. 6 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo1Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 5 6 | Packages: 7 | nginx_1.2.1-2.2+wheezy2_all 8 | unpaper_0.4.2-1_amd64 9 | libboost-program-options-dev_1.49.0.1_i386 10 | pyspi_0.6.1-1.3_source 11 | pyspi_0.6.1-1.4_source 12 | -------------------------------------------------------------------------------- /system/t08_db/CleanupDB3Test_gold: -------------------------------------------------------------------------------- 1 | Loading mirrors, local repos and snapshots... 2 | Loading list of all packages... 3 | Deleting unreferenced packages (7)... 4 | Building list of files referenced by packages... 5 | Building list of files in package pool... 6 | Deleting unreferenced files (9)... 7 | Disk space freed: 10.85 MiB... 8 | Compacting database... 9 | -------------------------------------------------------------------------------- /system/t08_db/CleanupDB5Test_gold: -------------------------------------------------------------------------------- 1 | Loading mirrors, local repos and snapshots... 2 | Loading list of all packages... 3 | Deleting unreferenced packages (7)... 4 | Building list of files referenced by packages... 5 | Building list of files in package pool... 6 | Deleting unreferenced files (9)... 7 | Disk space freed: 10.85 MiB... 8 | Compacting database... 9 | -------------------------------------------------------------------------------- /system/t08_db/CleanupDB8Test_gold: -------------------------------------------------------------------------------- 1 | Loading mirrors, local repos and snapshots... 2 | Loading list of all packages... 3 | Deleting unreferenced packages (3)... 4 | Building list of files referenced by packages... 5 | Building list of files in package pool... 6 | Deleting unreferenced files (5)... 7 | Disk space freed: 37.04 KiB... 8 | Compacting database... 9 | -------------------------------------------------------------------------------- /system/t05_snapshot/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Testing snapshot management 3 | """ 4 | 5 | from .create import * 6 | from .show import * 7 | from .list import * 8 | from .verify import * 9 | from .pull import * 10 | from .diff import * 11 | from .merge import * 12 | from .drop import * 13 | from .rename import * 14 | from .search import * 15 | from .filter import * -------------------------------------------------------------------------------- /system/t10_task/RunTask3Test_gold: -------------------------------------------------------------------------------- 1 | 1) [Running]: repo show a 2 | 3 | Begin command output: ---------------------------- 4 | ERROR: unable to show: local repo with name a not found 5 | 6 | End command output: ------------------------------ 7 | 2) [Skipping]: repo create local 8 | 3) [Skipping]: repo list 9 | ERROR: at least one command has reported an error 10 | -------------------------------------------------------------------------------- /cmd/package.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/smira/commander" 5 | ) 6 | 7 | func makeCmdPackage() *commander.Command { 8 | return &commander.Command{ 9 | UsageLine: "package", 10 | Short: "operations on packages", 11 | Subcommands: []*commander.Command{ 12 | makeCmdPackageSearch(), 13 | makeCmdPackageShow(), 14 | }, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /system/t04_mirror/test_release2/dists/hardy/Release: -------------------------------------------------------------------------------- 1 | Origin: test 2 | Label: failure 3 | Suite: test 4 | Version: 6.0.8 5 | Codename: hardy 6 | Date: Sat, 19 Oct 2013 13:54:21 UTC 7 | Architectures: amd64 8 | Components: main 9 | Description: Debian 6.0.8 Released 19 October 2013 10 | MD5Sum: 11 | 846549680001f5c632b6ee8e0f183825 827 main/binary-amd64/Packages 12 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror20Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://security.debian.org/dists/wheezy/updates/InRelease... 2 | Downloading http://security.debian.org/dists/wheezy/updates/Release... 3 | ERROR: unable to fetch mirror: Get http://security.debian.org/dists/wheezy/updates/Release: http: error connecting to proxy http://127.0.0.1:3137: dial tcp 127.0.0.1:3137: connection refused 4 | -------------------------------------------------------------------------------- /cmd/db.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/smira/commander" 5 | ) 6 | 7 | func makeCmdDb() *commander.Command { 8 | return &commander.Command{ 9 | UsageLine: "db", 10 | Short: "manage aptly's internal database and package pool", 11 | Subcommands: []*commander.Command{ 12 | makeCmdDbCleanup(), 13 | makeCmdDbRecover(), 14 | }, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /system/t09_repo/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Testing local repo management 3 | """ 4 | 5 | from .add import * 6 | from .copy import * 7 | from .create import * 8 | from .drop import * 9 | from .edit import * 10 | from .cmdimport import * 11 | from .list import * 12 | from .move import * 13 | from .remove import * 14 | from .show import * 15 | from .rename import * 16 | from .search import * 17 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror21Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror21 2 | Archive Root URL: http://pkg.jenkins-ci.org/debian-stable/ 3 | Distribution: ./binary/ 4 | Components: 5 | Architectures: 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: all 11 | Date: Wed, 30 Jul 2014 15:23:01 UTC 12 | Origin: jenkins-ci.org 13 | Suite: binary 14 | -------------------------------------------------------------------------------- /system/t04_mirror/ListMirror1Test_gold: -------------------------------------------------------------------------------- 1 | List of mirrors: 2 | * [mirror1]: http://mirror.yandex.ru/debian/ wheezy 3 | * [mirror2]: http://mirror.yandex.ru/debian/ squeeze [src] 4 | * [mirror3]: http://mirror.yandex.ru/debian/ squeeze 5 | * [mirror4]: http://download.opensuse.org/repositories/home:/DeepDiver1975/xUbuntu_10.04/ ./ 6 | 7 | To get more information about mirror, run `aptly mirror show `. 8 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror19Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://security.debian.org/dists/wheezy/updates/InRelease... 2 | gpgv: RSA key ID 46925553 3 | gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) " 4 | 5 | Mirror [mirror19]: http://security.debian.org/ wheezy/updates [src] successfully added. 6 | You can run 'aptly mirror update mirror19' to download repository contents. 7 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate4Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | Cleaning up prefix "." components main... 6 | 7 | Publish for local repo ./maverick [source] publishes {main: [local-repo]} has been successfully updated. 8 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate1Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | Cleaning up prefix "." components main... 6 | 7 | Publish for local repo ./maverick [i386, source] publishes {main: [local-repo]} has been successfully updated. 8 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate2Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | Cleaning up prefix "." components main... 6 | 7 | Publish for local repo ./maverick [i386, source] publishes {main: [local-repo]} has been successfully updated. 8 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate3Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | Cleaning up prefix "." components main... 6 | 7 | Publish for local repo ./maverick [i386, source] publishes {main: [local-repo]} has been successfully updated. 8 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.2.1 5 | - 1.3.1 6 | - tip 7 | 8 | env: 9 | global: 10 | - secure: "YSwtFrMqh4oUvdSQTXBXMHHLWeQgyNEL23ChIZwU0nuDGIcQZ65kipu0PzefedtUbK4ieC065YCUi4UDDh6gPotB/Wu1pnYg3dyQ7rFvhaVYAAUEpajAdXZhlx+7+J8a4FZMeC/kqiahxoRgLbthF9019ouIqhGB9zHKI6/yZwc=" 11 | 12 | install: 13 | - make prepare 14 | 15 | 16 | script: make travis 17 | 18 | matrix: 19 | allow_failures: 20 | - go: tip 21 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate7Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | Cleaning up prefix "." components contrib, main... 6 | 7 | Publish for local repo ./maverick [i386, source] publishes {contrib: [repo2]}, {main: [repo1]} has been successfully updated. 8 | -------------------------------------------------------------------------------- /system/t05_snapshot/VerifySnapshot10Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Verifying... 3 | Missing dependencies (13): 4 | fenix [amd64] 5 | fenix-plugins-system [amd64] 6 | ia32-libs-gtk-i386 [amd64] 7 | ia32-libs-i386 [amd64] 8 | kbdcontrol [amd64] 9 | kbdcontrol [i386] 10 | mozart (>= 1.4.0) [amd64] 11 | samba4 (>= 4.0.0~) [amd64] 12 | samba4 (>= 4.0.0~) [i386] 13 | scsh-0.6 (>= 0.6.6) [amd64] 14 | scsh-0.6 [amd64] 15 | vidcontrol [amd64] 16 | vidcontrol [i386] 17 | -------------------------------------------------------------------------------- /system/t05_snapshot/VerifySnapshot1Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Verifying... 3 | Missing dependencies (13): 4 | fenix [amd64] 5 | fenix-plugins-system [amd64] 6 | ia32-libs-gtk-i386 [amd64] 7 | ia32-libs-i386 [amd64] 8 | kbdcontrol [amd64] 9 | kbdcontrol [i386] 10 | mozart (>= 1.4.0) [amd64] 11 | samba4 (>= 4.0.0~) [amd64] 12 | samba4 (>= 4.0.0~) [i386] 13 | scsh-0.6 (>= 0.6.6) [amd64] 14 | scsh-0.6 [amd64] 15 | vidcontrol [amd64] 16 | vidcontrol [i386] 17 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror9Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian-backports/dists/squeeze-backports/InRelease... 2 | gpgv: Signature made Fri Feb 7 06:56:50 2014 MSK using RSA key ID 46925553 3 | gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) " 4 | 5 | Mirror [mirror9]: http://mirror.yandex.ru/debian-backports/ squeeze-backports successfully added. 6 | You can run 'aptly mirror update mirror9' to download repository contents. 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | 25 | coverage.html 26 | coverage*.out 27 | 28 | *.pyc 29 | 30 | _vendor/ 31 | 32 | gen 33 | man/aptly.1.html 34 | man/aptly.1.ronn -------------------------------------------------------------------------------- /system/t04_mirror/UpdateMirror3Test_gold: -------------------------------------------------------------------------------- 1 | Downloading ${url}dists/hardy/Release... 2 | Downloading & parsing package files... 3 | Downloading ${url}dists/hardy/main/binary-amd64/Packages.bz2... 4 | Downloading ${url}dists/hardy/main/binary-amd64/Packages.gz... 5 | Downloading ${url}dists/hardy/main/binary-amd64/Packages... 6 | ERROR: unable to update: ${url}dists/hardy/main/binary-amd64/Packages: sha256 hash mismatch "494414ded24da13c451b13b424928821351c78fce49f93d9e1b55f102790c206" != "8a21688ae769f2b4ffcaa366409f679d" 7 | -------------------------------------------------------------------------------- /system/t05_snapshot/ListSnapshot1Test_gold: -------------------------------------------------------------------------------- 1 | List of snapshots: 2 | * [snap1]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 3 | * [snap2]: Snapshot from mirror [wheezy-contrib]: http://mirror.yandex.ru/debian/ wheezy 4 | * [snap3]: Merged from sources: 'snap1', 'snap2' 5 | * [snap4]: Pulled into 'snap1' with 'snap2' as source, pull request was: 'mame unrar' 6 | * [snap5]: Snapshot from local repo [local-repo] 7 | 8 | To get more information about snapshot, run `aptly snapshot show `. 9 | -------------------------------------------------------------------------------- /system/t05_snapshot/ListSnapshot6Test_gold: -------------------------------------------------------------------------------- 1 | List of snapshots: 2 | * [snap2]: Snapshot from mirror [wheezy-contrib]: http://mirror.yandex.ru/debian/ wheezy 3 | * [snap1]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 4 | * [snap3]: Merged from sources: 'snap1', 'snap2' 5 | * [snap4]: Pulled into 'snap1' with 'snap2' as source, pull request was: 'mame unrar' 6 | * [snap5]: Snapshot from local repo [local-repo] 7 | 8 | To get more information about snapshot, run `aptly snapshot show `. 9 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot13Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | 4 | Snapshot snap13 has been successfully published. 5 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 6 | Now you can add following line to apt sources: 7 | deb http://your-server/ maverick main 8 | Don't forget to add your GPG key to apt with apt-key. 9 | 10 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 11 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot15Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | 4 | Snapshot snap15 has been successfully published. 5 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 6 | Now you can add following line to apt sources: 7 | deb http://your-server/ maverick main 8 | Don't forget to add your GPG key to apt with apt-key. 9 | 10 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 11 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot19Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | 4 | Snapshot snap5 has been successfully published. 5 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 6 | Now you can add following line to apt sources: 7 | deb http://your-server/ maverick main 8 | Don't forget to add your GPG key to apt with apt-key. 9 | 10 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 11 | -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot2Test_snapshot_show: -------------------------------------------------------------------------------- 1 | Name: snap2 2 | Description: Filtered 'snap1', query was: 'rsyslog (>= 7.4.4)' 3 | Number of packages: 9 4 | Packages: 5 | init-system-helpers_1.18~bpo70+1_all 6 | libestr0_0.1.9-1~bpo70+1_amd64 7 | libjson-c2_0.11-3~bpo7+1_amd64 8 | liblogging-stdlog0_1.0.4-1~bpo70+1_amd64 9 | rsyslog_7.6.3-2~bpo70+1_amd64 10 | libestr0_0.1.9-1~bpo70+1_i386 11 | libjson-c2_0.11-3~bpo7+1_i386 12 | liblogging-stdlog0_1.0.4-1~bpo70+1_i386 13 | rsyslog_7.6.3-2~bpo70+1_i386 14 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch1Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | Cleaning up prefix "." components main... 6 | 7 | Publish for snapshot ./maverick [amd64, i386] publishes {main: [snap3]: Pulled into 'snap2' with 'snap1' as source, pull request was: 'gnuplot-x11'} has been successfully switched to new snapshot. 8 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch3Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | Cleaning up prefix "." components main... 6 | 7 | Publish for snapshot ./maverick [amd64, i386] publishes {main: [snap3]: Pulled into 'snap2' with 'snap1' as source, pull request was: 'gnuplot-x11'} has been successfully switched to new snapshot. 8 | -------------------------------------------------------------------------------- /system/t02_config/CreateConfigTest_gold: -------------------------------------------------------------------------------- 1 | { 2 | "rootDir": "${HOME}/.aptly", 3 | "downloadConcurrency": 4, 4 | "downloadSpeedLimit": 0, 5 | "architectures": [], 6 | "dependencyFollowSuggests": false, 7 | "dependencyFollowRecommends": false, 8 | "dependencyFollowAllVariants": false, 9 | "dependencyFollowSource": false, 10 | "gpgDisableSign": false, 11 | "gpgDisableVerify": false, 12 | "downloadSourcePackages": false, 13 | "ppaDistributorID": "ubuntu", 14 | "ppaCodename": "", 15 | "S3PublishEndpoints": {} 16 | } -------------------------------------------------------------------------------- /system/t05_snapshot/PullSnapshot8Test_gold: -------------------------------------------------------------------------------- 1 | Dependencies would be pulled into snapshot: 2 | [snap1]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 3 | from snapshot: 4 | [snap2]: Snapshot from mirror [wheezy-non-free]: http://mirror.yandex.ru/debian/ wheezy 5 | and result would be saved as new snapshot snap3. 6 | Loading packages (56782)... 7 | Building indexes... 8 | 9 | Snapshot snap3 successfully created. 10 | You can run 'aptly publish snapshot snap3' to publish snapshot as Debian repository. 11 | -------------------------------------------------------------------------------- /system/t04_mirror/test_release/dists/hardy/Release: -------------------------------------------------------------------------------- 1 | Origin: test 2 | Label: failure 3 | Suite: test 4 | Version: 6.0.8 5 | Codename: hardy 6 | Date: Sat, 19 Oct 2013 13:54:21 UTC 7 | Architectures: amd64 8 | Components: main 9 | Description: Debian 6.0.8 Released 19 October 2013 10 | MD5Sum: 11 | 2e3817293fc275dbee74bd71ce6eb056 4 main/binary-amd64/Packages 12 | SHA1: 13 | 4d13fcc6eda389d4d679602171e11593eadae9b9 4 main/binary-amd64/Packages 14 | SHA256: 15 | 8a21688ae769f2b4ffcaa366409f679d 4 main/binary-amd64/Packages 16 | -------------------------------------------------------------------------------- /system/t04_mirror/UpdateMirror4Test_gold: -------------------------------------------------------------------------------- 1 | Downloading ${url}dists/hardy/Release... 2 | Downloading & parsing package files... 3 | Downloading ${url}dists/hardy/main/binary-amd64/Packages.bz2... 4 | Downloading ${url}dists/hardy/main/binary-amd64/Packages.gz... 5 | Downloading ${url}dists/hardy/main/binary-amd64/Packages... 6 | WARNING: ${url}dists/hardy/main/binary-amd64/Packages: sha256 hash mismatch "494414ded24da13c451b13b424928821351c78fce49f93d9e1b55f102790c206" != "8a21688ae769f2b4ffcaa366409f679d" 7 | ERROR: unable to update: malformed stanza syntax 8 | -------------------------------------------------------------------------------- /system/t05_snapshot/PullSnapshot12Test_gold: -------------------------------------------------------------------------------- 1 | Dependencies would be pulled into snapshot: 2 | [empty]: Created as empty 3 | from snapshot: 4 | [sensu]: Snapshot from mirror [sensu]: http://repos.sensuapp.org/apt/ sensu 5 | and result would be saved as new snapshot destination. 6 | Loading packages (154)... 7 | Building indexes... 8 | [+] sensu_0.12.6-5_amd64 added 9 | [+] sensu_0.12.6-5_i386 added 10 | 11 | Snapshot destination successfully created. 12 | You can run 'aptly publish snapshot destination' to publish snapshot as Debian repository. 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch4Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | Cleaning up prefix "ppa" components main... 6 | 7 | Publish for snapshot ppa/maverick [i386] publishes {main: [snap1]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick} has been successfully switched to new snapshot. 8 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror14Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror14 2 | Archive Root URL: http://download.opensuse.org/repositories/home:/DeepDiver1975/xUbuntu_10.04/ 3 | Distribution: ./ 4 | Components: 5 | Architectures: 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Date: Tue May 21 21:01:30 2013 11 | Description: Open Build Service home:DeepDiver1975 xUbuntu_10.04 12 | 13 | Label: DeepDiver1975's Home Project (xUbuntu_10.04) 14 | Origin: Open Build Service home:DeepDiver1975 xUbuntu_10.04 15 | Version: 0.00 16 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo24Test/pyspi_0.6.1-1.5.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.5 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Files: 12 | d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo25Test/pyspi_0.6.1-1.5.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.5 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Files: 12 | d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch10Test/pyspi_0.6.1-1.5.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.5 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Files: 12 | d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch11Test/pyspi_0.6.1-1.5.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.5 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Files: 12 | d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch2Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | Cleaning up prefix "ppa" components main... 6 | 7 | Publish for snapshot ppa/maverick [amd64, i386] publishes {main: [snap1]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick} has been successfully switched to new snapshot. 8 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate10Test/pyspi_0.6.1-1.5.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.5 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Files: 12 | d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate9Test/pyspi_0.6.1-1.5.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.5 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Files: 12 | d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz 13 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo11Test/pyspi_0.6.1-1.3.conflict.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.3 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Files: 12 | d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz 13 | -------------------------------------------------------------------------------- /system/t09_repo/AddRepo8Test/pyspi_0.6.1-1.3.conflict.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.3 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Files: 12 | d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo12Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | 4 | Local repo local-repo has been successfully published. 5 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 6 | Now you can add following line to apt sources: 7 | deb http://your-server/ maverick main 8 | deb-src http://your-server/ maverick main 9 | Don't forget to add your GPG key to apt with apt-key. 10 | 11 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 12 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot20Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | 4 | Snapshot snap3 has been successfully published. 5 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 6 | Now you can add following line to apt sources: 7 | deb http://your-server/ maverick main 8 | deb-src http://your-server/ maverick main 9 | Don't forget to add your GPG key to apt with apt-key. 10 | 11 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 12 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot22Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | 4 | Snapshot snap3 has been successfully published. 5 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 6 | Now you can add following line to apt sources: 7 | deb http://your-server/ maverick main 8 | deb-src http://your-server/ maverick main 9 | Don't forget to add your GPG key to apt with apt-key. 10 | 11 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 12 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot23Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | 4 | Snapshot snap3 has been successfully published. 5 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 6 | Now you can add following line to apt sources: 7 | deb http://your-server/ maverick main 8 | deb-src http://your-server/ maverick main 9 | Don't forget to add your GPG key to apt with apt-key. 10 | 11 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 12 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot33Test/pyspi_0.6.1-1.5.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.5 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Files: 12 | d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot34Test/pyspi_0.6.1-1.5.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.5 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Files: 12 | d41d8cd98f00b204e9800998ecf8427e 0 pyspi_0.6.1.orig.tar.gz 13 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo9Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Loading packages... 3 | [o] exim4_4.80-7_all imported 4 | [o] nginx-extras_1.2.1-2.2+wheezy2_amd64 imported 5 | [o] nginx-extras_1.2.1-2.2+wheezy2_i386 imported 6 | [o] nginx-full_1.2.1-2.2+wheezy2_amd64 imported 7 | [o] nginx-full_1.2.1-2.2+wheezy2_i386 imported 8 | [o] nginx-light_1.2.1-2.2+wheezy2_amd64 imported 9 | [o] nginx-light_1.2.1-2.2+wheezy2_i386 imported 10 | [o] nginx-naxsi-ui_1.2.1-2.2+wheezy2_all imported 11 | [o] nginx-naxsi_1.2.1-2.2+wheezy2_amd64 imported 12 | [o] nginx-naxsi_1.2.1-2.2+wheezy2_i386 imported -------------------------------------------------------------------------------- /files/files.go: -------------------------------------------------------------------------------- 1 | // Package files handles operation on filesystem for both public pool and published files 2 | package files 3 | 4 | // Repository directory structure: 5 | // 6 | // \- pool 7 | // \- ab 8 | // \- ae 9 | // \- package.deb 10 | // \- public 11 | // \- dists 12 | // \- squeeze 13 | // \- Release 14 | // \- main 15 | // \- binary-i386 16 | // \- Packages.bz2 17 | // references packages from pool 18 | // \- pool 19 | // contains symlinks to main pool 20 | -------------------------------------------------------------------------------- /system/t06_publish/PublishUpdate10Test_gold: -------------------------------------------------------------------------------- 1 | WARNING: force overwrite mode enabled, aptly might corrupt other published repositories sharing the same package pool. 2 | 3 | Loading packages... 4 | Generating metadata files and linking package files... 5 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 6 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 7 | Cleaning up prefix "." components main... 8 | 9 | Publish for local repo ./maverick [i386, source] publishes {main: [local-repo]} has been successfully updated. 10 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror18Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/InRelease... 2 | Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/Release... 3 | Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/Release.gpg... 4 | gpgv: RSA key ID 3B1F56C0 5 | gpgv: Good signature from "Launchpad sim" 6 | 7 | Mirror [mirror18]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick successfully added. 8 | You can run 'aptly mirror update mirror18' to download repository contents. 9 | -------------------------------------------------------------------------------- /system/t05_snapshot/FilterSnapshot7Test_snapshot_show: -------------------------------------------------------------------------------- 1 | Name: snap2 2 | Description: Filtered 'snap1', query was: 'rsyslog (>= 7.4.4), $Architecture (i386)' 3 | Number of packages: 10 4 | Packages: 5 | init-system-helpers_1.18~bpo70+1_all 6 | libestr0_0.1.9-1~bpo70+1_i386 7 | libjson-c2_0.11-3~bpo7+1_i386 8 | liblogging-stdlog0_1.0.4-1~bpo70+1_i386 9 | rsyslog_7.6.3-2~bpo70+1_i386 10 | init-system-helpers_1.18~bpo70+1_source 11 | json-c_0.11-3~bpo7+1_source 12 | libestr_0.1.9-1~bpo70+1_source 13 | liblogging_1.0.4-1~bpo70+1_source 14 | rsyslog_7.6.3-2~bpo70+1_source 15 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror12Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/squeeze/InRelease... 2 | Downloading http://mirror.yandex.ru/debian/dists/squeeze/Release... 3 | Downloading http://mirror.yandex.ru/debian/dists/squeeze/Release.gpg... 4 | gpgv: keyblock resource `${HOME}/.gnupg/aptlytest.gpg': file open error 5 | gpgv: RSA key ID 473041FA 6 | gpgv: Can't check signature: public key not found 7 | gpgv: RSA key ID B98321F9 8 | gpgv: Can't check signature: public key not found 9 | ERROR: unable to fetch mirror: verification of detached signature failed: exit status 2 10 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror18Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror18 2 | Archive Root URL: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ 3 | Distribution: maverick 4 | Components: main 5 | Architectures: amd64, armel, i386, powerpc 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel i386 powerpc 11 | Codename: maverick 12 | Components: main 13 | Date: Mon, 22 Oct 2012 13:19:50 UTC 14 | Description: Ubuntu Maverick 10.10 15 | 16 | Label: gnuplot 17 | Origin: LP-PPA-gladky-anton-gnuplot 18 | Suite: maverick 19 | Version: 10.10 20 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch11Test_gold: -------------------------------------------------------------------------------- 1 | WARNING: force overwrite mode enabled, aptly might corrupt other published repositories sharing the same package pool. 2 | 3 | Loading packages... 4 | Generating metadata files and linking package files... 5 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 6 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 7 | Cleaning up prefix "." components main... 8 | 9 | Publish for snapshot ./maverick [i386, source] publishes {main: [snap2]: Snapshot from local repo [local-repo2]} has been successfully switched to new snapshot. 10 | -------------------------------------------------------------------------------- /system/t08_db/recover.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | 3 | 4 | class RecoverDB1Test(BaseTest): 5 | """ 6 | recover db: no DB 7 | """ 8 | runCmd = "aptly db recover" 9 | 10 | 11 | class RecoverDB2Test(BaseTest): 12 | """ 13 | recover db: without CURRENT files 14 | """ 15 | fixtureDB = True 16 | runCmd = "aptly db recover" 17 | 18 | def prepare(self): 19 | super(RecoverDB2Test, self).prepare() 20 | 21 | self.delete_file("db/CURRENT") 22 | 23 | def check(self): 24 | self.check_output() 25 | self.check_cmd_output("aptly mirror list", "mirror_list") 26 | -------------------------------------------------------------------------------- /system/files/launchpad.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | Version: GnuPG v1 3 | 4 | mI0ES+RoaQEEAOQ6QF8zfqHbXJ+ekkXRm3uP5TvVwp0loa7S2u3xYjSDKzRz4nSS 5 | aD6coQ8wVPw4ROZLNnDtkbv9dDK9Mm7Uke5A8QkUXQU4v3/qFgjFT+au64iBYDRO 6 | FqAFFmZZdI0WCRxKJLiLal5H4cWnAoFBe5JdhAR8ZON2lm7vuKndVeg7ABEBAAG0 7 | DUxhdW5jaHBhZCBzaW2ItgQTAQIAIAUCS+RoaQIbAwYLCQgHAwIEFQIIAwQWAgMB 8 | Ah4BAheAAAoJEKUnmpc7H1bAJAED/0hbSk3nV9D5VdeLrkuyrAINTO801I1AZBdC 9 | lmqtFiFFsYE5jMeAFYk75BLS2aa9c1cbNh5Pwg7Ujg8+4/NOmPjFjvqONn0sRebJ 10 | FVwsedeQx+YTjCvy4vnviZmY+6ieixrgvrqG2+xPncuZmjppeKgMzPenPC178crJ 11 | hXttP13F 12 | =fI+d 13 | -----END PGP PUBLIC KEY BLOCK----- 14 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror3Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror3 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: wheezy 4 | Components: main, contrib 5 | Architectures: i386, amd64 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 11 | Codename: wheezy 12 | Components: main contrib non-free 13 | Date: Sat, 12 Jul 2014 10:59:25 UTC 14 | Description: Debian 7.6 Released 12 July 2014 15 | 16 | Label: Debian 17 | Origin: Debian 18 | Suite: stable 19 | Version: 7.6 20 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror7Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror7 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: wheezy 4 | Components: main, contrib 5 | Architectures: i386, amd64 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 11 | Codename: wheezy 12 | Components: main contrib non-free 13 | Date: Sat, 12 Jul 2014 10:59:25 UTC 14 | Description: Debian 7.6 Released 12 July 2014 15 | 16 | Label: Debian 17 | Origin: Debian 18 | Suite: stable 19 | Version: 7.6 20 | -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror6Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: wheezy-main 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: wheezy 4 | Components: main 5 | Architectures: amd64, s390 6 | Download Sources: no 7 | Number of packages: 56121 8 | 9 | Information from release file: 10 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 11 | Codename: wheezy 12 | Components: main contrib non-free 13 | Date: Sat, 12 Jul 2014 10:59:25 UTC 14 | Description: Debian 7.6 Released 12 July 2014 15 | 16 | Label: Debian 17 | Origin: Debian 18 | Suite: stable 19 | Version: 7.6 20 | -------------------------------------------------------------------------------- /cmd/repo.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/smira/commander" 5 | ) 6 | 7 | func makeCmdRepo() *commander.Command { 8 | return &commander.Command{ 9 | UsageLine: "repo", 10 | Short: "manage local package repositories", 11 | Subcommands: []*commander.Command{ 12 | makeCmdRepoAdd(), 13 | makeCmdRepoCopy(), 14 | makeCmdRepoCreate(), 15 | makeCmdRepoDrop(), 16 | makeCmdRepoEdit(), 17 | makeCmdRepoImport(), 18 | makeCmdRepoList(), 19 | makeCmdRepoMove(), 20 | makeCmdRepoRemove(), 21 | makeCmdRepoShow(), 22 | makeCmdRepoRename(), 23 | makeCmdRepoSearch(), 24 | }, 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror17Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror17 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: wheezy 4 | Components: main, contrib, non-free 5 | Architectures: i386 6 | Download Sources: yes 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 11 | Codename: wheezy 12 | Components: main contrib non-free 13 | Date: Sat, 12 Jul 2014 10:59:25 UTC 14 | Description: Debian 7.6 Released 12 July 2014 15 | 16 | Label: Debian 17 | Origin: Debian 18 | Suite: stable 19 | Version: 7.6 20 | -------------------------------------------------------------------------------- /utils/human.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | // HumanBytes converts bytes to human readable string 8 | func HumanBytes(i int64) (result string) { 9 | switch { 10 | case i > (512 * 1024 * 1024 * 1024): 11 | result = fmt.Sprintf("%#.02f TiB", float64(i)/1024/1024/1024/1024) 12 | case i > (512 * 1024 * 1024): 13 | result = fmt.Sprintf("%#.02f GiB", float64(i)/1024/1024/1024) 14 | case i > (512 * 1024): 15 | result = fmt.Sprintf("%#.02f MiB", float64(i)/1024/1024) 16 | case i > 512: 17 | result = fmt.Sprintf("%#.02f KiB", float64(i)/1024) 18 | default: 19 | result = fmt.Sprintf("%d B", i) 20 | } 21 | return 22 | } 23 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror21Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://pkg.jenkins-ci.org/debian-stable/binary/InRelease... 2 | Downloading http://pkg.jenkins-ci.org/debian-stable/binary/Release... 3 | Downloading http://pkg.jenkins-ci.org/debian-stable/binary/Release.gpg... 4 | gpgv: DSA key ID D50582E6 5 | gpgv: Good signature from "Kohsuke Kawaguchi " 6 | gpgv: aka "Kohsuke Kawaguchi " 7 | gpgv: aka "[invalid image]" 8 | 9 | Mirror [mirror21]: http://pkg.jenkins-ci.org/debian-stable/ ./binary/ successfully added. 10 | You can run 'aptly mirror update mirror21' to download repository contents. 11 | -------------------------------------------------------------------------------- /cmd/snapshot.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/smira/commander" 5 | ) 6 | 7 | func makeCmdSnapshot() *commander.Command { 8 | return &commander.Command{ 9 | UsageLine: "snapshot", 10 | Short: "manage snapshots of repositories", 11 | Subcommands: []*commander.Command{ 12 | makeCmdSnapshotCreate(), 13 | makeCmdSnapshotList(), 14 | makeCmdSnapshotShow(), 15 | makeCmdSnapshotVerify(), 16 | makeCmdSnapshotPull(), 17 | makeCmdSnapshotDiff(), 18 | makeCmdSnapshotMerge(), 19 | makeCmdSnapshotDrop(), 20 | makeCmdSnapshotRename(), 21 | makeCmdSnapshotSearch(), 22 | makeCmdSnapshotFilter(), 23 | }, 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /cmd/version.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "fmt" 5 | "github.com/smira/aptly/aptly" 6 | "github.com/smira/commander" 7 | ) 8 | 9 | func aptlyVersion(cmd *commander.Command, args []string) error { 10 | if len(args) != 0 { 11 | cmd.Usage() 12 | return commander.ErrCommandError 13 | } 14 | 15 | fmt.Printf("aptly version: %s\n", aptly.Version) 16 | return nil 17 | } 18 | 19 | func makeCmdVersion() *commander.Command { 20 | return &commander.Command{ 21 | Run: aptlyVersion, 22 | UsageLine: "version", 23 | Short: "display version", 24 | Long: ` 25 | Shows aptly version. 26 | 27 | ex: 28 | $ aptly version 29 | `, 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /system/t05_snapshot/PullSnapshot1Test_gold: -------------------------------------------------------------------------------- 1 | Dependencies would be pulled into snapshot: 2 | [snap1]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 3 | from snapshot: 4 | [snap2]: Snapshot from mirror [wheezy-non-free]: http://mirror.yandex.ru/debian/ wheezy 5 | and result would be saved as new snapshot snap3. 6 | Loading packages (56782)... 7 | Building indexes... 8 | [+] mame_0.146-5_amd64 added 9 | [+] unrar_1:4.1.4-1_amd64 added 10 | [+] mame_0.146-5_i386 added 11 | [+] unrar_1:4.1.4-1_i386 added 12 | 13 | Snapshot snap3 successfully created. 14 | You can run 'aptly publish snapshot snap3' to publish snapshot as Debian repository. 15 | -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror3Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: wheezy-main 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: wheezy 4 | Components: main 5 | Architectures: i386, amd64 6 | Download Sources: no 7 | Last update: 2014-06-28 01:23:25 MSK 8 | Number of packages: 56121 9 | 10 | Information from release file: 11 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 12 | Codename: wheezy 13 | Components: main contrib non-free 14 | Date: Sat, 26 Apr 2014 09:27:11 UTC 15 | Description: Debian 7.5 Released 26 April 2014 16 | 17 | Label: Debian 18 | Origin: Debian 19 | Suite: stable 20 | Version: 7.5 21 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot2Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Snapshot snap2 has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ squeeze main 10 | Don't forget to add your GPG key to apt with apt-key. 11 | 12 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot4Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Snapshot snap4 has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ squeeze main 10 | Don't forget to add your GPG key to apt with apt-key. 11 | 12 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 13 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror11Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian/dists/squeeze/InRelease... 2 | Downloading http://mirror.yandex.ru/debian/dists/squeeze/Release... 3 | Downloading http://mirror.yandex.ru/debian/dists/squeeze/Release.gpg... 4 | gpgv: RSA key ID 473041FA 5 | gpgv: Good signature from "Debian Archive Automatic Signing Key (6.0/squeeze) " 6 | gpgv: RSA key ID B98321F9 7 | gpgv: Good signature from "Squeeze Stable Release Key " 8 | 9 | Mirror [mirror11]: http://mirror.yandex.ru/debian/ squeeze successfully added. 10 | You can run 'aptly mirror update mirror11' to download repository contents. 11 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot1Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Snapshot snap1 has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick main 10 | Don't forget to add your GPG key to apt with apt-key. 11 | 12 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot24Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Snapshot snap24 has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ squeeze main 10 | Don't forget to add your GPG key to apt with apt-key. 11 | 12 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Snapshot snap3 has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ squeeze contrib 10 | Don't forget to add your GPG key to apt with apt-key. 11 | 12 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo3Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Local repo local-repo has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick contrib 10 | Don't forget to add your GPG key to apt with apt-key. 11 | 12 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 13 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot5Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Snapshot snap5 has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ppa/smira/ squeeze main 10 | Don't forget to add your GPG key to apt with apt-key. 11 | 12 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 13 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror19Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror19 2 | Archive Root URL: http://security.debian.org/ 3 | Distribution: wheezy/updates 4 | Components: main 5 | Architectures: i386 6 | Download Sources: yes 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 11 | Codename: wheezy 12 | Components: updates/main updates/contrib updates/non-free 13 | Date: Tue, 11 Mar 2014 21:11:28 UTC 14 | Description: Debian 7.0 Security Updates 15 | 16 | Label: Debian-Security 17 | Origin: Debian 18 | Suite: stable 19 | Valid-Until: Fri, 21 Mar 2014 21:11:28 UTC 20 | Version: 7.0 21 | -------------------------------------------------------------------------------- /system/t04_mirror/UpdateMirror5Test_gold: -------------------------------------------------------------------------------- 1 | Downloading ${url}dists/hardy/Release... 2 | Downloading & parsing package files... 3 | Downloading ${url}dists/hardy/main/binary-amd64/Packages.bz2... 4 | Downloading ${url}dists/hardy/main/binary-amd64/Packages.gz... 5 | Downloading ${url}dists/hardy/main/binary-amd64/Packages... 6 | Building download queue... 7 | Download queue: 1 items (30 B) 8 | Downloading ${url}pool/main/a/amanda/amanda-client_3.3.1-3~bpo60+1_amd64.deb... 9 | ERROR: unable to update: download errors: 10 | ${url}pool/main/a/amanda/amanda-client_3.3.1-3~bpo60+1_amd64.deb: sha1 hash mismatch "8d3a014000038725d6daf8771b42a0784253688f" != "66b27417d37e024c46526c2f6d358a754fc552f3" 11 | 12 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSwitch8Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | Cleaning up prefix "." components b, c... 6 | 7 | Publish for snapshot ./maverick [amd64, i386, source] publishes {a: [snap1]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick}, {b: [snap3]: Pulled into 'snap2' with 'snap1' as source, pull request was: 'gnuplot-x11'}, {c: [local2]: Snapshot from local repo [local-repo]} has been successfully switched to new snapshot. 8 | -------------------------------------------------------------------------------- /deb/package_deps.go: -------------------------------------------------------------------------------- 1 | package deb 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | // PackageDependencies are various parsed dependencies 8 | type PackageDependencies struct { 9 | Depends []string 10 | BuildDepends []string 11 | BuildDependsInDep []string 12 | PreDepends []string 13 | Suggests []string 14 | Recommends []string 15 | } 16 | 17 | func parseDependencies(input Stanza, key string) []string { 18 | value, ok := input[key] 19 | if !ok { 20 | return nil 21 | } 22 | 23 | delete(input, key) 24 | 25 | result := strings.Split(value, ",") 26 | for i := range result { 27 | result[i] = strings.TrimSpace(result[i]) 28 | } 29 | return result 30 | } 31 | -------------------------------------------------------------------------------- /system/t04_mirror/UpdateMirror6Test_gold: -------------------------------------------------------------------------------- 1 | Downloading ${url}dists/hardy/Release... 2 | Downloading & parsing package files... 3 | Downloading ${url}dists/hardy/main/binary-amd64/Packages.bz2... 4 | Downloading ${url}dists/hardy/main/binary-amd64/Packages.gz... 5 | Downloading ${url}dists/hardy/main/binary-amd64/Packages... 6 | Building download queue... 7 | Download queue: 1 items (30 B) 8 | Downloading ${url}pool/main/a/amanda/amanda-client_3.3.1-3~bpo60+1_amd64.deb... 9 | WARNING: ${url}pool/main/a/amanda/amanda-client_3.3.1-3~bpo60+1_amd64.deb: sha1 hash mismatch "8d3a014000038725d6daf8771b42a0784253688f" != "66b27417d37e024c46526c2f6d358a754fc552f3" 10 | 11 | Mirror `failure` has been successfully updated. 12 | -------------------------------------------------------------------------------- /system/t05_snapshot/PullSnapshot3Test_gold: -------------------------------------------------------------------------------- 1 | Dependencies would be pulled into snapshot: 2 | [snap1]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 3 | from snapshot: 4 | [snap2]: Snapshot from mirror [wheezy-backports]: http://mirror.yandex.ru/debian/ wheezy-backports 5 | and result would be saved as new snapshot snap3. 6 | Loading packages (60863)... 7 | Building indexes... 8 | [-] rsyslog_5.8.11-3_amd64 removed 9 | [+] rsyslog_7.6.3-2~bpo70+1_amd64 added 10 | [-] rsyslog_5.8.11-3_i386 removed 11 | [+] rsyslog_7.6.3-2~bpo70+1_i386 added 12 | 13 | Snapshot snap3 successfully created. 14 | You can run 'aptly publish snapshot snap3' to publish snapshot as Debian repository. 15 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror2Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror2 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: wheezy 4 | Components: main 5 | Architectures: amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 11 | Codename: wheezy 12 | Components: main contrib non-free 13 | Date: Sat, 12 Jul 2014 10:59:25 UTC 14 | Description: Debian 7.6 Released 12 July 2014 15 | 16 | Label: Debian 17 | Origin: Debian 18 | Suite: stable 19 | Version: 7.6 20 | -------------------------------------------------------------------------------- /utils/human_test.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | import ( 4 | . "launchpad.net/gocheck" 5 | ) 6 | 7 | type HumanSuite struct{} 8 | 9 | var _ = Suite(&HumanSuite{}) 10 | 11 | func (s *HumanSuite) TestHumanBytes(c *C) { 12 | c.Check(HumanBytes(50), Equals, "50 B") 13 | c.Check(HumanBytes(968), Equals, "0.95 KiB") 14 | c.Check(HumanBytes(20480), Equals, "20.00 KiB") 15 | c.Check(HumanBytes(700480), Equals, "0.67 MiB") 16 | c.Check(HumanBytes(7000480), Equals, "6.68 MiB") 17 | c.Check(HumanBytes(824000480), Equals, "0.77 GiB") 18 | c.Check(HumanBytes(82400000480), Equals, "76.74 GiB") 19 | c.Check(HumanBytes(824000000480), Equals, "0.75 TiB") 20 | c.Check(HumanBytes(824000000000480), Equals, "749.42 TiB") 21 | } 22 | -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror1Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: wheezy-main 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: wheezy 4 | Components: main 5 | Architectures: i386, amd64 6 | Download Sources: no 7 | Filter: nginx 8 | Filter With Deps: yes 9 | Last update: 2014-06-28 01:23:25 MSK 10 | Number of packages: 56121 11 | 12 | Information from release file: 13 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 14 | Codename: wheezy 15 | Components: main contrib non-free 16 | Date: Sat, 26 Apr 2014 09:27:11 UTC 17 | Description: Debian 7.5 Released 26 April 2014 18 | 19 | Label: Debian 20 | Origin: Debian 21 | Suite: stable 22 | Version: 7.5 23 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror10Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://mirror.yandex.ru/debian-backports/dists/squeeze-backports/InRelease... 2 | gpgv: keyblock resource `${HOME}/.gnupg/aptlytest.gpg': file open error 3 | gpgv: RSA key ID 46925553 4 | gpgv: Can't check signature: public key not found 5 | Downloading http://mirror.yandex.ru/debian-backports/dists/squeeze-backports/Release... 6 | Downloading http://mirror.yandex.ru/debian-backports/dists/squeeze-backports/Release.gpg... 7 | gpgv: keyblock resource `${HOME}/.gnupg/aptlytest.gpg': file open error 8 | gpgv: RSA key ID 46925553 9 | gpgv: Can't check signature: public key not found 10 | ERROR: unable to fetch mirror: verification of detached signature failed: exit status 2 11 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror11Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror11 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: squeeze 4 | Components: main, contrib, non-free 5 | Architectures: amd64, armel, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, sparc 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 sparc 11 | Codename: squeeze 12 | Components: main contrib non-free 13 | Date: Sat, 19 Jul 2014 11:02:06 UTC 14 | Description: Debian 6.0.10 Released 19 July 2014 15 | 16 | Label: Debian 17 | Origin: Debian 18 | Suite: oldstable 19 | Version: 6.0.10 20 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror14Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://download.opensuse.org/repositories/home:/DeepDiver1975/xUbuntu_10.04/InRelease... 2 | Downloading http://download.opensuse.org/repositories/home:/DeepDiver1975/xUbuntu_10.04/Release... 3 | Downloading http://download.opensuse.org/repositories/home:/DeepDiver1975/xUbuntu_10.04/Release.gpg... 4 | gpgv: Signature made Tue May 21 23:01:30 2013 MSK using DSA key ID 1048C1FF 5 | gpgv: Good signature from "home:DeepDiver1975 OBS Project " 6 | 7 | Mirror [mirror14]: http://download.opensuse.org/repositories/home:/DeepDiver1975/xUbuntu_10.04/ ./ successfully added. 8 | You can run 'aptly mirror update mirror14' to download repository contents. 9 | -------------------------------------------------------------------------------- /system/t04_mirror/ShowMirror1Test_gold: -------------------------------------------------------------------------------- 1 | Name: mirror1 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: wheezy 4 | Components: main, contrib, non-free 5 | Architectures: amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 11 | Codename: wheezy 12 | Components: main contrib non-free 13 | Date: Sat, 12 Jul 2014 10:59:25 UTC 14 | Description: Debian 7.6 Released 12 July 2014 15 | 16 | Label: Debian 17 | Origin: Debian 18 | Suite: stable 19 | Version: 7.6 20 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo1Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Local repo local-repo has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick main 10 | deb-src http://your-server/ maverick main 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo26Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Local repo local-repo has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick main 10 | deb-src http://your-server/ maverick main 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot16Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Snapshot snap16 has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick main 10 | deb-src http://your-server/ maverick main 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot17Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Snapshot snap17 has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick main 10 | deb-src http://your-server/ maverick main 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror1Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror1 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: wheezy 4 | Components: main, contrib, non-free 5 | Architectures: amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 11 | Codename: wheezy 12 | Components: main contrib non-free 13 | Date: Sat, 12 Jul 2014 10:59:25 UTC 14 | Description: Debian 7.6 Released 12 July 2014 15 | 16 | Label: Debian 17 | Origin: Debian 18 | Suite: stable 19 | Version: 7.6 20 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo14Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Local repo local-repo has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick contrib 10 | deb-src http://your-server/ maverick contrib 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo15Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Local repo local-repo has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick contrib 10 | deb-src http://your-server/ maverick contrib 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo2Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Local repo local-repo has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick contrib 10 | deb-src http://your-server/ maverick contrib 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror13Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror13 2 | Archive Root URL: http://mirror.yandex.ru/debian/ 3 | Distribution: wheezy 4 | Components: main, contrib, non-free 5 | Architectures: amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 11 | Codename: wheezy 12 | Components: main contrib non-free 13 | Date: Sat, 12 Jul 2014 10:59:25 UTC 14 | Description: Debian 7.6 Released 12 July 2014 15 | 16 | Label: Debian 17 | Origin: Debian 18 | Suite: stable 19 | Version: 7.6 20 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo4Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Local repo local-repo has been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ppa/ maverick main 10 | deb-src http://your-server/ppa/ maverick main 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t06_publish/PublishList2Test_gold: -------------------------------------------------------------------------------- 1 | Published repositories: 2 | * ./maverick [amd64, i386] publishes {main: [snap1]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick} 3 | * ppa/maverick [amd64, i386] publishes {contrib: [snap2]: Merged from sources: 'snap1'}, {main: [snap1]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick} 4 | * ppa/smira/wheezy [amd64] publishes {contrib: [snap2]: Merged from sources: 'snap1'} 5 | * ppa/tr1/maverick (origin: origin1) [amd64, i386] publishes {main: [snap2]: Merged from sources: 'snap1'} 6 | * ppa/tr2/maverick (label: label1) [amd64, i386] publishes {main: [snap2]: Merged from sources: 'snap1'} 7 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo17Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Local repos repo1, repo2 have been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick contrib main 10 | deb-src http://your-server/ maverick contrib main 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo18Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Local repos repo1, repo2 have been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ squeeze contrib main 10 | deb-src http://your-server/ squeeze contrib main 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t10_task/RunTask2Test_gold: -------------------------------------------------------------------------------- 1 | 1) [Running]: repo list -raw 2 | 3 | Begin command output: ---------------------------- 4 | 5 | End command output: ------------------------------ 6 | 2) [Running]: repo create local 7 | 8 | Begin command output: ---------------------------- 9 | 10 | Local repo [local] successfully added. 11 | You can run 'aptly repo add local ...' to add packages to repository. 12 | 13 | End command output: ------------------------------ 14 | 3) [Running]: repo list 15 | 16 | Begin command output: ---------------------------- 17 | List of local repos: 18 | * [local] (packages: 0) 19 | 20 | To get more information about local repository, run `aptly repo show `. 21 | 22 | End command output: ------------------------------ 23 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot26Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Snapshots snap26.1, snap26.2 have been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick contrib main 10 | deb-src http://your-server/ maverick contrib main 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot27Test_gold: -------------------------------------------------------------------------------- 1 | Loading packages... 2 | Generating metadata files and linking package files... 3 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 4 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 5 | 6 | Snapshots snap27.1, snap27.2 have been successfully published. 7 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 8 | Now you can add following line to apt sources: 9 | deb http://your-server/ maverick contrib main 10 | deb-src http://your-server/ maverick contrib main 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /cmd/mirror_search.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/smira/commander" 5 | "github.com/smira/flag" 6 | ) 7 | 8 | func makeCmdMirrorSearch() *commander.Command { 9 | cmd := &commander.Command{ 10 | Run: aptlySnapshotMirrorRepoSearch, 11 | UsageLine: "search ", 12 | Short: "search mirror for packages matching query", 13 | Long: ` 14 | Command search displays list of packages in mirror that match package query 15 | 16 | Example: 17 | 18 | $ aptly mirror search wheezy-main '$Architecture (i386), Name (% *-dev)' 19 | `, 20 | Flag: *flag.NewFlagSet("aptly-mirror-show", flag.ExitOnError), 21 | } 22 | 23 | cmd.Flag.Bool("with-deps", false, "include dependencies into search results") 24 | 25 | return cmd 26 | } 27 | -------------------------------------------------------------------------------- /cmd/repo_search.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/smira/commander" 5 | "github.com/smira/flag" 6 | ) 7 | 8 | func makeCmdRepoSearch() *commander.Command { 9 | cmd := &commander.Command{ 10 | Run: aptlySnapshotMirrorRepoSearch, 11 | UsageLine: "search ", 12 | Short: "search repo for packages matching query", 13 | Long: ` 14 | Command search displays list of packages in local repository that match package query 15 | 16 | Example: 17 | 18 | $ aptly repo search my-software '$Architecture (i386), Name (% *-dev)' 19 | `, 20 | Flag: *flag.NewFlagSet("aptly-repo-show", flag.ExitOnError), 21 | } 22 | 23 | cmd.Flag.Bool("with-deps", false, "include dependencies into search results") 24 | 25 | return cmd 26 | } 27 | -------------------------------------------------------------------------------- /deb/ppa_test.go: -------------------------------------------------------------------------------- 1 | package deb 2 | 3 | import ( 4 | "github.com/smira/aptly/utils" 5 | . "launchpad.net/gocheck" 6 | ) 7 | 8 | type PpaSuite struct { 9 | config utils.ConfigStructure 10 | } 11 | 12 | var _ = Suite(&PpaSuite{}) 13 | 14 | func (s *PpaSuite) TestParsePPA(c *C) { 15 | _, _, _, err := ParsePPA("ppa:dedeed", &s.config) 16 | c.Check(err, ErrorMatches, "unable to parse ppa URL.*") 17 | 18 | s.config.PpaDistributorID = "debian" 19 | s.config.PpaCodename = "wheezy" 20 | 21 | url, distribution, components, err := ParsePPA("ppa:user/project", &s.config) 22 | c.Check(err, IsNil) 23 | c.Check(url, Equals, "http://ppa.launchpad.net/user/project/debian") 24 | c.Check(distribution, Equals, "wheezy") 25 | c.Check(components, DeepEquals, []string{"main"}) 26 | } 27 | -------------------------------------------------------------------------------- /system/t04_mirror/EditMirror5Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror5 2 | Archive Root URL: http://security.debian.org/ 3 | Distribution: wheezy/updates 4 | Components: main 5 | Architectures: amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 11 | Codename: wheezy 12 | Components: updates/main updates/contrib updates/non-free 13 | Date: Fri, 25 Jul 2014 03:31:55 UTC 14 | Description: Debian 7.0 Security Updates 15 | 16 | Label: Debian-Security 17 | Origin: Debian 18 | Suite: stable 19 | Valid-Until: Mon, 04 Aug 2014 03:31:55 UTC 20 | Version: 7.0 21 | -------------------------------------------------------------------------------- /system/t09_repo/show.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | 3 | 4 | class ShowRepo1Test(BaseTest): 5 | """ 6 | show local repo: regular 7 | """ 8 | fixtureCmds = ["aptly repo create -comment=Cool -distribution=squeeze repo1"] 9 | runCmd = "aptly repo show repo1" 10 | 11 | 12 | class ShowRepo2Test(BaseTest): 13 | """ 14 | show local repo: -with-packages 15 | """ 16 | fixtureCmds = [ 17 | "aptly repo create -comment=Cool -distribution=wheezy -component=contrib repo2", 18 | "aptly repo add repo2 ${files}" 19 | ] 20 | runCmd = "aptly repo show -with-packages repo2" 21 | 22 | 23 | class ShowRepo3Test(BaseTest): 24 | """ 25 | show local repo: not found 26 | """ 27 | expectedCode = 1 28 | runCmd = "aptly repo show repo3" 29 | -------------------------------------------------------------------------------- /utils/compress.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | import ( 4 | "compress/gzip" 5 | "io" 6 | "os" 7 | "os/exec" 8 | ) 9 | 10 | // CompressFile compresses file specified by source to .gz & .bz2 11 | // 12 | // It uses internal gzip and external bzip2, see: 13 | // https://code.google.com/p/go/issues/detail?id=4828 14 | func CompressFile(source *os.File) error { 15 | gzPath := source.Name() + ".gz" 16 | gzFile, err := os.Create(gzPath) 17 | if err != nil { 18 | return err 19 | } 20 | defer gzFile.Close() 21 | 22 | gzWriter := gzip.NewWriter(gzFile) 23 | defer gzWriter.Close() 24 | 25 | source.Seek(0, 0) 26 | _, err = io.Copy(gzWriter, source) 27 | if err != nil { 28 | return err 29 | } 30 | 31 | cmd := exec.Command("bzip2", "-k", "-f", source.Name()) 32 | return cmd.Run() 33 | } 34 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo2Test_gold: -------------------------------------------------------------------------------- 1 | 2 | Loading packages... 3 | [o] dpkg_1.16.12_i386 imported 4 | [o] gcc-4.7-base_4.7.2-5_amd64 imported 5 | [o] gcc-4.7-base_4.7.2-5_i386 imported 6 | [o] libbz2-1.0_1.0.6-4_i386 imported 7 | [o] libc-bin_2.13-38+deb7u1_amd64 imported 8 | [o] libc-bin_2.13-38+deb7u1_i386 imported 9 | [o] libc6_2.13-38+deb7u1_amd64 imported 10 | [o] libc6_2.13-38+deb7u1_i386 imported 11 | [o] libgcc1_1:4.7.2-5_amd64 imported 12 | [o] libgcc1_1:4.7.2-5_i386 imported 13 | [o] liblzma5_5.1.1alpha+20120614-2_i386 imported 14 | [o] libselinux1_2.1.9-5_i386 imported 15 | [o] multiarch-support_2.13-38+deb7u1_amd64 imported 16 | [o] multiarch-support_2.13-38+deb7u1_i386 imported 17 | [o] tar_1.26+dfsg-0.1_i386 imported 18 | [o] userinfo_2.2-3_amd64 imported 19 | [o] zlib1g_1:1.2.7.dfsg-13_i386 imported -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot25Test_gold: -------------------------------------------------------------------------------- 1 | Warning: publishing from empty source, architectures list should be complete, it can't be changed after publishing (use -architectures flag) 2 | Loading packages... 3 | Generating metadata files and linking package files... 4 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 5 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 6 | 7 | Snapshot snap25 has been successfully published. 8 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 9 | Now you can add following line to apt sources: 10 | deb http://your-server/ maverick main 11 | Don't forget to add your GPG key to apt with apt-key. 12 | 13 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 14 | -------------------------------------------------------------------------------- /system/t04_mirror/rename.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | 3 | 4 | class RenameMirror1Test(BaseTest): 5 | """ 6 | rename mirror: regular operations 7 | """ 8 | fixtureDB = True 9 | runCmd = "aptly mirror rename wheezy-main wheezy-main-cool" 10 | 11 | def check(self): 12 | self.check_output() 13 | self.check_cmd_output("aptly mirror list", "mirror_list") 14 | 15 | 16 | class RenameMirror2Test(BaseTest): 17 | """ 18 | rename mirror: missing mirror 19 | """ 20 | runCmd = "aptly mirror rename wheezy-main wheezy-main-cool" 21 | expectedCode = 1 22 | 23 | 24 | class RenameMirror3Test(BaseTest): 25 | """ 26 | rename mirror: already exists 27 | """ 28 | fixtureDB = True 29 | runCmd = "aptly mirror rename wheezy-main wheezy-contrib" 30 | expectedCode = 1 31 | -------------------------------------------------------------------------------- /system/t10_task/RunTask4Test_gold: -------------------------------------------------------------------------------- 1 | Reading file... 2 | 3 | 1) [Running]: repo list 4 | 5 | Begin command output: ---------------------------- 6 | No local repositories found, create one with `aptly repo create ...`. 7 | 8 | End command output: ------------------------------ 9 | 2) [Running]: repo create -distribution=Cool abc 10 | 11 | Begin command output: ---------------------------- 12 | 13 | Local repo [abc] successfully added. 14 | You can run 'aptly repo add abc ...' to add packages to repository. 15 | 16 | End command output: ------------------------------ 17 | 3) [Running]: repo show abc 18 | 19 | Begin command output: ---------------------------- 20 | Name: abc 21 | Comment: 22 | Default Distribution: Cool 23 | Default Component: main 24 | Number of packages: 0 25 | 26 | End command output: ------------------------------ 27 | -------------------------------------------------------------------------------- /system/t04_mirror/ShowMirror4Test_gold: -------------------------------------------------------------------------------- 1 | Name: mirror4 2 | Archive Root URL: http://security.debian.org/ 3 | Distribution: wheezy/updates 4 | Components: main 5 | Architectures: amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc 6 | Download Sources: no 7 | Filter: nginx | Priority (required) 8 | Filter With Deps: yes 9 | Last update: never 10 | 11 | Information from release file: 12 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 13 | Codename: wheezy 14 | Components: updates/main updates/contrib updates/non-free 15 | Date: Sun, 13 Jul 2014 12:12:08 UTC 16 | Description: Debian 7.0 Security Updates 17 | 18 | Label: Debian-Security 19 | Origin: Debian 20 | Suite: stable 21 | Valid-Until: Wed, 23 Jul 2014 12:12:08 UTC 22 | Version: 7.0 23 | -------------------------------------------------------------------------------- /system/t06_publish/PublishSnapshot34Test_gold: -------------------------------------------------------------------------------- 1 | WARNING: force overwrite mode enabled, aptly might corrupt other published repositories sharing the same package pool. 2 | 3 | Loading packages... 4 | Generating metadata files and linking package files... 5 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 6 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 7 | 8 | Snapshot snap2 has been successfully published. 9 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 10 | Now you can add following line to apt sources: 11 | deb http://your-server/ squeeze main 12 | deb-src http://your-server/ squeeze main 13 | Don't forget to add your GPG key to apt with apt-key. 14 | 15 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 16 | -------------------------------------------------------------------------------- /system/t09_repo/ImportRepo2Test_repo_show: -------------------------------------------------------------------------------- 1 | Name: repo1 2 | Comment: Cool 3 | Default Distribution: squeeze 4 | Default Component: main 5 | Number of packages: 20 6 | Packages: 7 | gcc-4.7-base_4.7.2-5_amd64 8 | libc-bin_2.13-38+deb7u1_amd64 9 | libc6_2.13-38+deb7u1_amd64 10 | libgcc1_1:4.7.2-5_amd64 11 | multiarch-support_2.13-38+deb7u1_amd64 12 | userinfo_2.2-3_amd64 13 | dpkg_1.16.12_i386 14 | gcc-4.7-base_4.7.2-5_i386 15 | libboost-program-options-dev_1.49.0.1_i386 16 | libbz2-1.0_1.0.6-4_i386 17 | libc-bin_2.13-38+deb7u1_i386 18 | libc6_2.13-38+deb7u1_i386 19 | libgcc1_1:4.7.2-5_i386 20 | liblzma5_5.1.1alpha+20120614-2_i386 21 | libselinux1_2.1.9-5_i386 22 | multiarch-support_2.13-38+deb7u1_i386 23 | tar_1.26+dfsg-0.1_i386 24 | zlib1g_1:1.2.7.dfsg-13_i386 25 | pyspi_0.6.1-1.3_source 26 | pyspi_0.6.1-1.4_source 27 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo25Test_gold: -------------------------------------------------------------------------------- 1 | WARNING: force overwrite mode enabled, aptly might corrupt other published repositories sharing the same package pool. 2 | 3 | Loading packages... 4 | Generating metadata files and linking package files... 5 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 6 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 7 | 8 | Local repo local-repo2 has been successfully published. 9 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 10 | Now you can add following line to apt sources: 11 | deb http://your-server/ squeeze main 12 | deb-src http://your-server/ squeeze main 13 | Don't forget to add your GPG key to apt with apt-key. 14 | 15 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 16 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror22Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror22 2 | Archive Root URL: http://security.debian.org/ 3 | Distribution: wheezy/updates 4 | Components: main 5 | Architectures: amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc 6 | Download Sources: no 7 | Filter: nginx | Priority (required) 8 | Filter With Deps: no 9 | Last update: never 10 | 11 | Information from release file: 12 | Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc 13 | Codename: wheezy 14 | Components: updates/main updates/contrib updates/non-free 15 | Date: Sun, 13 Jul 2014 12:12:08 UTC 16 | Description: Debian 7.0 Security Updates 17 | 18 | Label: Debian-Security 19 | Origin: Debian 20 | Suite: stable 21 | Valid-Until: Wed, 23 Jul 2014 12:12:08 UTC 22 | Version: 7.0 23 | -------------------------------------------------------------------------------- /system/t04_mirror/CreateMirror9Test_mirror_show: -------------------------------------------------------------------------------- 1 | Name: mirror9 2 | Archive Root URL: http://mirror.yandex.ru/debian-backports/ 3 | Distribution: squeeze-backports 4 | Components: main, contrib, non-free 5 | Architectures: amd64, armel, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, sparc 6 | Download Sources: no 7 | Last update: never 8 | 9 | Information from release file: 10 | Architectures: amd64 armel i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 sparc 11 | ButAutomaticUpgrades: yes 12 | Codename: squeeze-backports 13 | Components: main contrib non-free 14 | Date: Fri, 07 Feb 2014 02:56:49 UTC 15 | Description: Backports for the Squeeze Distribution 16 | 17 | Label: Debian Backports 18 | NotAutomatic: yes 19 | Origin: Debian Backports 20 | Suite: squeeze-backports 21 | Valid-Until: Fri, 14 Feb 2014 02:56:49 UTC 22 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo16Test_gold: -------------------------------------------------------------------------------- 1 | Warning: publishing from empty source, architectures list should be complete, it can't be changed after publishing (use -architectures flag) 2 | Loading packages... 3 | Generating metadata files and linking package files... 4 | Signing file 'Release' with gpg, please enter your passphrase when prompted: 5 | Clearsigning file 'Release' with gpg, please enter your passphrase when prompted: 6 | 7 | Local repo local-repo has been successfully published. 8 | Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing. 9 | Now you can add following line to apt sources: 10 | deb http://your-server/ maverick main 11 | deb-src http://your-server/ maverick main 12 | Don't forget to add your GPG key to apt with apt-key. 13 | 14 | You can also use `aptly serve` to publish your repositories over HTTP quickly. 15 | -------------------------------------------------------------------------------- /cmd/repo_copy.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/smira/commander" 5 | "github.com/smira/flag" 6 | ) 7 | 8 | func makeCmdRepoCopy() *commander.Command { 9 | cmd := &commander.Command{ 10 | Run: aptlyRepoMoveCopyImport, 11 | UsageLine: "copy ...", 12 | Short: "copy packages between local repositories", 13 | Long: ` 14 | Command copy copies packages matching from local repo 15 | to local repo . 16 | 17 | Example: 18 | 19 | $ aptly repo copy testing stable 'myapp (=0.1.12)' 20 | `, 21 | Flag: *flag.NewFlagSet("aptly-repo-copy", flag.ExitOnError), 22 | } 23 | 24 | cmd.Flag.Bool("dry-run", false, "don't copy, just show what would be copied") 25 | cmd.Flag.Bool("with-deps", false, "follow dependencies when processing package-spec") 26 | 27 | return cmd 28 | } 29 | -------------------------------------------------------------------------------- /system/t09_repo/rename.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | 3 | 4 | class RenameRepo1Test(BaseTest): 5 | """ 6 | rename repo: regular operations 7 | """ 8 | fixtureCmds = [ 9 | "aptly repo create repo1", 10 | ] 11 | runCmd = "aptly repo rename repo1 repo2" 12 | 13 | def check(self): 14 | self.check_output() 15 | self.check_cmd_output("aptly repo list", "repo_list") 16 | 17 | 18 | class RenameRepo2Test(BaseTest): 19 | """ 20 | rename repo: missing repo 21 | """ 22 | runCmd = "aptly repo rename repo2 repo3" 23 | expectedCode = 1 24 | 25 | 26 | class RenameRepo3Test(BaseTest): 27 | """ 28 | rename repo: already exists 29 | """ 30 | fixtureCmds = [ 31 | "aptly repo create repo3", 32 | "aptly repo create repo4", 33 | ] 34 | runCmd = "aptly repo rename repo3 repo4" 35 | expectedCode = 1 36 | -------------------------------------------------------------------------------- /system/t10_task/RunTask1Test_gold: -------------------------------------------------------------------------------- 1 | 1) [Running]: repo list 2 | 3 | Begin command output: ---------------------------- 4 | No local repositories found, create one with `aptly repo create ...`. 5 | 6 | End command output: ------------------------------ 7 | 2) [Running]: repo create local 8 | 9 | Begin command output: ---------------------------- 10 | 11 | Local repo [local] successfully added. 12 | You can run 'aptly repo add local ...' to add packages to repository. 13 | 14 | End command output: ------------------------------ 15 | 3) [Running]: repo drop local 16 | 17 | Begin command output: ---------------------------- 18 | Local repo `local` has been removed. 19 | 20 | End command output: ------------------------------ 21 | 4) [Running]: version 22 | 23 | Begin command output: ---------------------------- 24 | aptly version: 0.8~dev 25 | 26 | End command output: ------------------------------ 27 | -------------------------------------------------------------------------------- /cmd/repo_import.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/smira/commander" 5 | "github.com/smira/flag" 6 | ) 7 | 8 | func makeCmdRepoImport() *commander.Command { 9 | cmd := &commander.Command{ 10 | Run: aptlyRepoMoveCopyImport, 11 | UsageLine: "import ...", 12 | Short: "import packages from mirror to local repository", 13 | Long: ` 14 | Command import looks up packages matching in mirror 15 | and copies them to local repo . 16 | 17 | Example: 18 | 19 | $ aptly repo import wheezy-main testing nginx 20 | `, 21 | Flag: *flag.NewFlagSet("aptly-repo-import", flag.ExitOnError), 22 | } 23 | 24 | cmd.Flag.Bool("dry-run", false, "don't import, just show what would be imported") 25 | cmd.Flag.Bool("with-deps", false, "follow dependencies when processing package-spec") 26 | 27 | return cmd 28 | } 29 | -------------------------------------------------------------------------------- /query/query.go: -------------------------------------------------------------------------------- 1 | // Package query implements query language for 2 | package query 3 | 4 | import ( 5 | "github.com/smira/aptly/deb" 6 | ) 7 | 8 | /* 9 | 10 | Query language resembling Debian dependencies and reprepro 11 | queries: http://mirrorer.alioth.debian.org/reprepro.1.html 12 | 13 | Query := A | A '|' Query 14 | A := B | B ',' A 15 | B := C | '!' B 16 | C := '(' Query ')' | D 17 | D := | __ 18 | field := | | $special_field 19 | condition := '(' value ')' | 20 | arch_condition := '{' arch '}' | 21 | operator := | << | < | <= | > | >> | >= | = | % | ~ 22 | */ 23 | 24 | // Parse parses input package query into PackageQuery tree ready for evaluation 25 | func Parse(query string) (result deb.PackageQuery, err error) { 26 | l, _ := lex("", query) 27 | result, err = parse(l) 28 | return 29 | } 30 | -------------------------------------------------------------------------------- /utils/checksum_test.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | import ( 4 | "io/ioutil" 5 | . "launchpad.net/gocheck" 6 | "os" 7 | ) 8 | 9 | type ChecksumSuite struct { 10 | tempfile *os.File 11 | } 12 | 13 | var _ = Suite(&ChecksumSuite{}) 14 | 15 | func (s *ChecksumSuite) SetUpTest(c *C) { 16 | s.tempfile, _ = ioutil.TempFile(c.MkDir(), "aptly-test") 17 | s.tempfile.WriteString(testString) 18 | } 19 | 20 | func (s *ChecksumSuite) TearDownTest(c *C) { 21 | s.tempfile.Close() 22 | } 23 | 24 | func (s *ChecksumSuite) TestChecksumsForFile(c *C) { 25 | info, err := ChecksumsForFile(s.tempfile.Name()) 26 | 27 | c.Assert(err, IsNil) 28 | c.Check(info.Size, Equals, int64(83)) 29 | c.Check(info.MD5, Equals, "43470766afbfdca292440eecdceb80fb") 30 | c.Check(info.SHA1, Equals, "1743f8408261b4f1eff88e0fca15a7077223fa79") 31 | c.Check(info.SHA256, Equals, "f2775692fd3b70bd0faa4054b7afa92d427bf994cd8629741710c4864ee4dc95") 32 | } 33 | -------------------------------------------------------------------------------- /cmd/db_recover.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/smira/aptly/database" 5 | "github.com/smira/commander" 6 | ) 7 | 8 | // aptly db recover 9 | func aptlyDbRecover(cmd *commander.Command, args []string) error { 10 | var err error 11 | 12 | if len(args) != 0 { 13 | cmd.Usage() 14 | return commander.ErrCommandError 15 | } 16 | 17 | context.Progress().Printf("Recovering database...\n") 18 | err = database.RecoverDB(context.DBPath()) 19 | 20 | return err 21 | } 22 | 23 | func makeCmdDbRecover() *commander.Command { 24 | cmd := &commander.Command{ 25 | Run: aptlyDbRecover, 26 | UsageLine: "recover", 27 | Short: "recover DB after crash", 28 | Long: ` 29 | Database recover does its' best to recover the database after a crash. 30 | It is recommended to backup the DB before running recover. 31 | 32 | Example: 33 | 34 | $ aptly db recover 35 | `, 36 | } 37 | 38 | return cmd 39 | } 40 | -------------------------------------------------------------------------------- /cmd/run.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "fmt" 5 | "github.com/smira/commander" 6 | ) 7 | 8 | // Run runs single command starting from root cmd with args, optionally initializing context 9 | func Run(cmd *commander.Command, cmdArgs []string, initContext bool) (returnCode int) { 10 | defer func() { 11 | if r := recover(); r != nil { 12 | fatal, ok := r.(*FatalError) 13 | if !ok { 14 | panic(r) 15 | } 16 | fmt.Println("ERROR:", fatal.Message) 17 | returnCode = fatal.ReturnCode 18 | } 19 | }() 20 | 21 | returnCode = 0 22 | 23 | flags, args, err := cmd.ParseFlags(cmdArgs) 24 | if err != nil { 25 | Fatal(err) 26 | } 27 | 28 | if initContext { 29 | err = InitContext(flags) 30 | if err != nil { 31 | Fatal(err) 32 | } 33 | defer ShutdownContext() 34 | } 35 | 36 | context.UpdateFlags(flags) 37 | 38 | err = cmd.Dispatch(args) 39 | if err != nil { 40 | Fatal(err) 41 | } 42 | 43 | return 44 | } 45 | -------------------------------------------------------------------------------- /system/t04_mirror/test_release2/dists/hardy/main/binary-amd64/Packages: -------------------------------------------------------------------------------- 1 | Package: amanda-client 2 | Source: amanda 3 | Version: 1:3.3.1-3~bpo60+1 4 | Installed-Size: 880 5 | Maintainer: Bdale Garbee 6 | Architecture: amd64 7 | Replaces: amanda-common (<< 1:2.5.2p1-3) 8 | Depends: libc6 (>= 2.3), libcurl3 (>= 7.16.2-1), libglib2.0-0 (>= 2.12.0), libreadline6 (>= 6.0), libssl0.9.8 (>= 0.9.8m-1), amanda-common (= 1:3.3.1-3~bpo60+1) 9 | Suggests: gnuplot, dump, smbclient 10 | Conflicts: amanda, amanda-common (<< 1:2.5.2p1-3) 11 | Description: Advanced Maryland Automatic Network Disk Archiver (Client) 12 | Description-md5: 21af3684379a64cacc51c39152ab1062 13 | Section: utils 14 | Priority: optional 15 | Filename: pool/main/a/amanda/amanda-client_3.3.1-3~bpo60+1_amd64.deb 16 | Size: 30 17 | MD5sum: 4f7223ebadee9fb57b6796570d60638f 18 | SHA1: 66b27417d37e024c46526c2f6d358a754fc552f3 19 | SHA256: 3608bca1e44ea6c4d268eb6db02260269892c0b42b86bbf1e77a6fa16c3c9282 -------------------------------------------------------------------------------- /system/t05_snapshot/PullSnapshot11Test_gold: -------------------------------------------------------------------------------- 1 | Dependencies would be pulled into snapshot: 2 | [snap1]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 3 | from snapshot: 4 | [snap2]: Snapshot from mirror [wheezy-backports]: http://mirror.yandex.ru/debian/ wheezy-backports 5 | and result would be saved as new snapshot snap3. 6 | Loading packages (60863)... 7 | Building indexes... 8 | [+] libestr0_0.1.9-1~bpo70+1_amd64 added 9 | [+] init-system-helpers_1.18~bpo70+1_all added 10 | [+] libjson-c2_0.11-3~bpo7+1_amd64 added 11 | [+] libjson-c2_0.11-3~bpo7+1_i386 added 12 | [+] liblogging-stdlog0_1.0.4-1~bpo70+1_amd64 added 13 | [+] liblogging-stdlog0_1.0.4-1~bpo70+1_i386 added 14 | [+] rsyslog_7.6.3-2~bpo70+1_amd64 added 15 | [+] rsyslog_7.6.3-2~bpo70+1_i386 added 16 | [+] libestr0_0.1.9-1~bpo70+1_i386 added 17 | 18 | Snapshot snap3 successfully created. 19 | You can run 'aptly publish snapshot snap3' to publish snapshot as Debian repository. 20 | -------------------------------------------------------------------------------- /system/t09_repo/create.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | 3 | 4 | class CreateRepo1Test(BaseTest): 5 | """ 6 | create local repo: regular repo 7 | """ 8 | runCmd = "aptly repo create repo1" 9 | 10 | def check(self): 11 | self.check_output() 12 | self.check_cmd_output("aptly repo show repo1", "repo_show") 13 | 14 | 15 | class CreateRepo2Test(BaseTest): 16 | """ 17 | create local repo: regular repo with comment & publishing defaults 18 | """ 19 | runCmd = "aptly repo create -comment=Repository2 -distribution=maverick -component=non-free repo2" 20 | 21 | def check(self): 22 | self.check_output() 23 | self.check_cmd_output("aptly repo show repo2", "repo_show") 24 | 25 | 26 | class CreateRepo3Test(BaseTest): 27 | """ 28 | create local repo: duplicate name 29 | """ 30 | fixtureCmds = ["aptly repo create repo3"] 31 | runCmd = "aptly repo create -comment=Repository3 repo3" 32 | expectedCode = 1 33 | -------------------------------------------------------------------------------- /system/t09_repo/list.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | 3 | 4 | class ListRepo1Test(BaseTest): 5 | """ 6 | list local repos: no repos 7 | """ 8 | runCmd = "aptly repo list" 9 | 10 | 11 | class ListRepo2Test(BaseTest): 12 | """ 13 | list local repo: normal 14 | """ 15 | fixtureCmds = [ 16 | "aptly repo create -comment=Cool3 repo3", 17 | "aptly repo create -comment=Cool2 repo2", 18 | "aptly repo create repo1", 19 | ] 20 | runCmd = "aptly repo list" 21 | 22 | 23 | class ListRepo3Test(BaseTest): 24 | """ 25 | list local repos: raw no repos 26 | """ 27 | runCmd = "aptly -raw repo list" 28 | 29 | 30 | class ListRepo4Test(BaseTest): 31 | """ 32 | list local repo: raw normal 33 | """ 34 | fixtureCmds = [ 35 | "aptly repo create -comment=Cool3 repo3", 36 | "aptly repo create -comment=Cool2 repo2", 37 | "aptly repo create repo1", 38 | ] 39 | runCmd = "aptly repo list -raw" 40 | -------------------------------------------------------------------------------- /system/t10_task/run.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | 3 | 4 | class RunTask1Test(BaseTest): 5 | """ 6 | task run: simple commands, 1-word command 7 | """ 8 | runCmd = "aptly task run repo list, repo create local, repo drop local, version" 9 | 10 | 11 | class RunTask2Test(BaseTest): 12 | """ 13 | task run: commands with args 14 | """ 15 | runCmd = "aptly task run -- repo list -raw, repo create local, repo list" 16 | 17 | 18 | class RunTask3Test(BaseTest): 19 | """ 20 | task run: failure 21 | """ 22 | expectedCode = 1 23 | runCmd = "aptly task run -- repo show a, repo create local, repo list" 24 | 25 | 26 | class RunTask4Test(BaseTest): 27 | """ 28 | task run: from file 29 | """ 30 | runCmd = "aptly task run -filename=${testfiles}/task" 31 | 32 | 33 | class RunTask5Test(BaseTest): 34 | """ 35 | task run: from file not found 36 | """ 37 | expectedCode = 1 38 | runCmd = "aptly task run -filename=not_found" 39 | -------------------------------------------------------------------------------- /system/t11_package/search.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | 3 | 4 | class SearchPackage1Test(BaseTest): 5 | """ 6 | search package: regular search 7 | """ 8 | fixtureDB = True 9 | outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n"))) 10 | runCmd = "aptly package search '$$Architecture (i386), Name (% *-dev)'" 11 | 12 | 13 | class SearchPackage2Test(BaseTest): 14 | """ 15 | search package: missing package 16 | """ 17 | runCmd = "aptly package search 'Name (package-xx)'" 18 | 19 | 20 | class SearchPackage3Test(BaseTest): 21 | """ 22 | search package: by key 23 | """ 24 | fixtureDB = True 25 | runCmd = "aptly package search nginx-full_1.2.1-2.2+wheezy2_amd64" 26 | 27 | 28 | class SearchPackage4Test(BaseTest): 29 | """ 30 | search package: by dependency 31 | """ 32 | fixtureDB = True 33 | outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n"))) 34 | runCmd = "aptly package search coreutils" 35 | -------------------------------------------------------------------------------- /system/files/pyspi-0.6.1-1.3.stripped.dsc: -------------------------------------------------------------------------------- 1 | Format: 1.0 2 | Source: pyspi 3 | Binary: python-at-spi 4 | Architecture: any 5 | Version: 0.6.1-1.4 6 | Maintainer: Jose Carlos Garcia Sogo 7 | Homepage: http://people.redhat.com/zcerza/dogtail 8 | Standards-Version: 3.7.3 9 | Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk 10 | Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev 11 | Checksums-Sha1: 12 | 9694b80acc171c0a5bc99f707933864edfce555e 29063 pyspi_0.6.1.orig.tar.gz 13 | 95a2468e4bbce730ba286f2211fa41861b9f1d90 3456 pyspi_0.6.1-1.3.diff.gz 14 | Checksums-Sha256: 15 | 64069ee828c50b1c597d10a3fefbba279f093a4723965388cdd0ac02f029bfb9 29063 pyspi_0.6.1.orig.tar.gz 16 | 2e770b28df948f3197ed0b679bdea99f3f2bf745e9ddb440c677df9c3aeaee3c 3456 pyspi_0.6.1-1.3.diff.gz 17 | Files: 18 | def336bd566ea688a06ec03db7ccf1f4 29063 pyspi_0.6.1.orig.tar.gz 19 | 22ff26db69b73d3438fdde21ab5ba2f1 3456 pyspi_0.6.1-1.3.diff.gz 20 | -------------------------------------------------------------------------------- /system/t05_snapshot/show.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | import re 3 | 4 | 5 | class ShowSnapshot1Test(BaseTest): 6 | """ 7 | show snapshot: from mirror 8 | """ 9 | fixtureDB = True 10 | fixtureCmds = ["aptly snapshot create snap1 from mirror wheezy-non-free"] 11 | runCmd = "aptly snapshot show --with-packages snap1" 12 | outputMatchPrepare = lambda _, s: re.sub(r"Created At: [0-9:A-Za-z -]+\n", "", s) 13 | 14 | 15 | class ShowSnapshot2Test(BaseTest): 16 | """ 17 | show snapshot: no snapshot 18 | """ 19 | fixtureDB = True 20 | runCmd = "aptly snapshot show no-such-snapshot" 21 | expectedCode = 1 22 | 23 | 24 | class ShowSnapshot3Test(BaseTest): 25 | """ 26 | show snapshot: from mirror w/o packages 27 | """ 28 | fixtureDB = True 29 | fixtureCmds = ["aptly snapshot create snap1 from mirror wheezy-non-free"] 30 | runCmd = "aptly snapshot show snap1" 31 | outputMatchPrepare = lambda _, s: re.sub(r"Created At: [0-9:A-Za-z -]+\n", "", s) 32 | -------------------------------------------------------------------------------- /system/t09_repo/edit.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | 3 | 4 | class EditRepo1Test(BaseTest): 5 | """ 6 | edit repo: change comment 7 | """ 8 | fixtureCmds = [ 9 | "aptly repo create repo1", 10 | ] 11 | runCmd = "aptly repo edit -comment=Lala repo1" 12 | 13 | def check(self): 14 | self.check_output() 15 | self.check_cmd_output("aptly repo show repo1", "repo-show") 16 | 17 | 18 | class EditRepo2Test(BaseTest): 19 | """ 20 | edit repo: change distribution & component 21 | """ 22 | fixtureCmds = [ 23 | "aptly repo create -comment=Lala -component=non-free repo2", 24 | ] 25 | runCmd = "aptly repo edit -distribution=wheezy -component=contrib repo2" 26 | 27 | def check(self): 28 | self.check_output() 29 | self.check_cmd_output("aptly repo show repo2", "repo-show") 30 | 31 | 32 | class EditRepo3Test(BaseTest): 33 | """ 34 | edit repo: no such repo 35 | """ 36 | runCmd = "aptly repo edit repo3" 37 | expectedCode = 1 38 | -------------------------------------------------------------------------------- /system/t04_mirror/UpdateMirror8Test_gold: -------------------------------------------------------------------------------- 1 | Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/InRelease... 2 | Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/Release... 3 | Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/Release.gpg... 4 | gpgv: RSA key ID 3B1F56C0 5 | gpgv: Good signature from "Launchpad sim" 6 | Downloading & parsing package files... 7 | Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/main/binary-amd64/Packages.bz2... 8 | Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/main/binary-armel/Packages.bz2... 9 | Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/main/binary-i386/Packages.bz2... 10 | Downloading http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/dists/maverick/main/binary-powerpc/Packages.bz2... 11 | Building download queue... 12 | Download queue: 0 items (0 B) 13 | 14 | Mirror `gnuplot-maverick-src` has been successfully updated. 15 | -------------------------------------------------------------------------------- /system/t05_snapshot/PullSnapshot4Test_gold: -------------------------------------------------------------------------------- 1 | Dependencies would be pulled into snapshot: 2 | [snap1]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 3 | from snapshot: 4 | [snap2]: Snapshot from mirror [wheezy-backports]: http://mirror.yandex.ru/debian/ wheezy-backports 5 | and result would be saved as new snapshot snap3. 6 | Loading packages (60863)... 7 | Building indexes... 8 | [-] rsyslog_5.8.11-3_amd64 removed 9 | [+] libjson-c2_0.11-3~bpo7+1_amd64 added 10 | [+] liblogging-stdlog0_1.0.4-1~bpo70+1_amd64 added 11 | [+] rsyslog_7.6.3-2~bpo70+1_amd64 added 12 | [-] libestr0_0.1.1-2_amd64 removed 13 | [+] libestr0_0.1.9-1~bpo70+1_amd64 added 14 | [+] init-system-helpers_1.18~bpo70+1_all added 15 | [-] rsyslog_5.8.11-3_i386 removed 16 | [+] libjson-c2_0.11-3~bpo7+1_i386 added 17 | [+] liblogging-stdlog0_1.0.4-1~bpo70+1_i386 added 18 | [+] rsyslog_7.6.3-2~bpo70+1_i386 added 19 | [-] libestr0_0.1.1-2_i386 removed 20 | [+] libestr0_0.1.9-1~bpo70+1_i386 added 21 | 22 | Not creating snapshot, as dry run was requested. 23 | -------------------------------------------------------------------------------- /system/t05_snapshot/PullSnapshot7Test_gold: -------------------------------------------------------------------------------- 1 | Dependencies would be pulled into snapshot: 2 | [snap1]: Snapshot from mirror [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 3 | from snapshot: 4 | [snap2]: Snapshot from mirror [wheezy-backports]: http://mirror.yandex.ru/debian/ wheezy-backports 5 | and result would be saved as new snapshot snap1. 6 | Loading packages (60863)... 7 | Building indexes... 8 | [+] libjson-c2_0.11-3~bpo7+1_amd64 added 9 | [+] libjson-c2_0.11-3~bpo7+1_i386 added 10 | [+] liblogging-stdlog0_1.0.4-1~bpo70+1_amd64 added 11 | [+] liblogging-stdlog0_1.0.4-1~bpo70+1_i386 added 12 | [+] rsyslog_7.6.3-2~bpo70+1_amd64 added 13 | [+] rsyslog_7.6.3-2~bpo70+1_i386 added 14 | [-] rsyslog_5.8.11-3_amd64 removed 15 | [-] libestr0_0.1.1-2_amd64 removed 16 | [+] libestr0_0.1.9-1~bpo70+1_amd64 added 17 | [+] init-system-helpers_1.18~bpo70+1_all added 18 | [-] rsyslog_5.8.11-3_i386 removed 19 | [-] libestr0_0.1.1-2_i386 removed 20 | [+] libestr0_0.1.9-1~bpo70+1_i386 added 21 | ERROR: unable to create snapshot: snapshot with name snap1 already exists 22 | -------------------------------------------------------------------------------- /system/t04_mirror/search.py: -------------------------------------------------------------------------------- 1 | from lib import BaseTest 2 | 3 | 4 | class SearchMirror1Test(BaseTest): 5 | """ 6 | search mirror: regular search 7 | """ 8 | fixtureDB = True 9 | outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n"))) 10 | runCmd = "aptly mirror search wheezy-main '$$Architecture (i386), Name (% *-dev)'" 11 | 12 | 13 | class SearchMirror2Test(BaseTest): 14 | """ 15 | search mirror: missing mirror 16 | """ 17 | runCmd = "aptly mirror search mirror-xx 'Name'" 18 | expectedCode = 1 19 | 20 | 21 | class SearchMirror3Test(BaseTest): 22 | """ 23 | search mirror: wrong expression 24 | """ 25 | fixtureDB = True 26 | expectedCode = 1 27 | runCmd = "aptly mirror search wheezy-main '$$Architecture (i386'" 28 | 29 | 30 | class SearchMirror4Test(BaseTest): 31 | """ 32 | search mirror: with-deps search 33 | """ 34 | fixtureDB = True 35 | outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n"))) 36 | runCmd = "aptly mirror search -with-deps wheezy-main 'Name (nginx)'" 37 | -------------------------------------------------------------------------------- /system/t07_serve/Serve1Test_gold: -------------------------------------------------------------------------------- 1 | Serving published repositories, recommended apt sources list: 2 | 3 | # ./maverick [amd64, i386] publishes {main: [snap1]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick} 4 | deb http://127.0.0.1:8765/ maverick main 5 | # debian/maverick [amd64, i386, source] publishes {main: [snap2]: Snapshot from mirror [gnuplot-maverick-src]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick [src]} 6 | deb http://127.0.0.1:8765/debian/ maverick main 7 | deb-src http://127.0.0.1:8765/debian/ maverick main 8 | # multi/maverick [amd64, i386, source] publishes {contrib: [snap2]: Snapshot from mirror [gnuplot-maverick-src]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick [src]}, {main: [snap1]: Snapshot from mirror [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick} 9 | deb http://127.0.0.1:8765/multi/ maverick contrib main 10 | deb-src http://127.0.0.1:8765/multi/ maverick contrib main 11 | 12 | Starting web server at: 127.0.0.1:8765 (press Ctrl+C to quit)... 13 | -------------------------------------------------------------------------------- /system/t11_package/ShowPackage3Test_gold: -------------------------------------------------------------------------------- 1 | Package: nginx-full 2 | Version: 1.2.1-2.2+wheezy2 3 | Installed-Size: 915 4 | Priority: optional 5 | Section: httpd 6 | Maintainer: Kartik Mistry 7 | Architecture: amd64 8 | Description: nginx web/proxy server (standard version) 9 | MD5sum: 586a2ff5648004cd0114447f5df46a29 10 | SHA1: 7bf9b91714046f12d765adad860677f5b650c616 11 | SHA256: aa724376b6bf534c8ff38a8c5de4d4208d4de2b57946f875857349436542306b 12 | Description-md5: b334eec6202adf5e9045cc6066a082d1 13 | Conflicts: nginx-extras, nginx-light, nginx-naxsi 14 | Filename: nginx-full_1.2.1-2.2+wheezy2_amd64.deb 15 | Size: 435328 16 | Homepage: http://nginx.net 17 | Depends: nginx-common (= 1.2.1-2.2+wheezy2), libc6 (>= 2.10), libexpat1 (>= 2.0.1), libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm (>= 2.0.36~rc1~dfsg), libgeoip1 (>= 1.4.8+dfsg), libpam0g (>= 0.99.7.1), libpcre3 (>= 8.10), libssl1.0.0 (>= 1.0.0), libxml2 (>= 2.7.4), libxslt1.1 (>= 1.1.25), zlib1g (>= 1:1.1.4) 18 | Provides: httpd, nginx 19 | Source: nginx 20 | Tag: network::server, protocol::http, role::program 21 | 22 | -------------------------------------------------------------------------------- /system/t08_db/RecoverDB2Test_mirror_list: -------------------------------------------------------------------------------- 1 | List of mirrors: 2 | * [gnuplot-maverick-src]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick [src] 3 | * [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick 4 | * [sensu]: http://repos.sensuapp.org/apt/ sensu 5 | * [wheezy-backports-src]: http://mirror.yandex.ru/debian/ wheezy-backports [src] 6 | * [wheezy-backports]: http://mirror.yandex.ru/debian/ wheezy-backports 7 | * [wheezy-contrib-src]: http://mirror.yandex.ru/debian/ wheezy [src] 8 | * [wheezy-contrib]: http://mirror.yandex.ru/debian/ wheezy 9 | * [wheezy-main-src]: http://mirror.yandex.ru/debian/ wheezy [src] 10 | * [wheezy-main]: http://mirror.yandex.ru/debian/ wheezy 11 | * [wheezy-non-free-src]: http://mirror.yandex.ru/debian/ wheezy [src] 12 | * [wheezy-non-free]: http://mirror.yandex.ru/debian/ wheezy 13 | * [wheezy-updates-src]: http://mirror.yandex.ru/debian/ wheezy-updates [src] 14 | * [wheezy-updates]: http://mirror.yandex.ru/debian/ wheezy-updates 15 | 16 | To get more information about mirror, run `aptly mirror show `. 17 | -------------------------------------------------------------------------------- /system/files/flat.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | Version: GnuPG v1.4.5 (GNU/Linux) 3 | 4 | mQGiBE9p65cRBACFOL5YS4kW6xieXa98meE+RVu1hfBi1n7ajAy+ZQOfNa2Xb9if 5 | H8WAcwJD4cTZYB19/O/xVxCYf1hnC/T34XGC5PUzMzBDKde86UDqvT4YNHDQA/E1 6 | I6UUzE0MgLINO4Dt7Mw62koVrlPXklc2Zn83ucZB7YgBzJOIBFUQLghikwCgnubS 7 | n/9lw8Hm8CIsg4nWtHwHGPED/jXIsH7ON3PBx2wIdRsealsx5sPGHQSlq1grRHcN 8 | YT5/glXmVqnexY/+IFhcpjjb3vMMQ5LYq8+bDWGVMQx3GZrJs66rwPbo4kZ92OdC 9 | RTnY/nznJlf5gS86DaFl+NFuO7F1k8ju4CurXXGXPF7nk8cgV6CrYHz1AtNyLVqa 10 | 306IA/9j9rdD/MY9SYT16eFMo7C2ieIS0RxxU3q9w0e8EucQKiHWMtjTPJ0Ik0GO 11 | TY5lAPasnD6ZBA15XSiTi2Ck2QoZQZCxdtId/nL7lNG4+vQ8HACNDkxxK4yHJiFa 12 | frMdlWi5cYgAMYzbYPekbhaamDR7Gh4NU7z72QZTPELKyZD/pbRGaG9tZTpEZWVw 13 | RGl2ZXIxOTc1IE9CUyBQcm9qZWN0IDxob21lOkRlZXBEaXZlcjE5NzVAYnVpbGQu 14 | b3BlbnN1c2Uub3JnPohlBBMRAgAmBQJPaeuXAhsDBQkEHrAABgsJCAcDAgQVAggD 15 | BBYCAwECHgECF4AACgkQuCWWGBBIwf+tEgCcDEzTAilZDvOr0OKHHmguuKFXoHMA 16 | ljX7B6nKOYoiHoGpBeOwr8U5ZB6IRgQTEQIABgUCT2nrlwAKCRA7MBG3a51lI7Rt 17 | AJ4mYeomQiHHfd+7c8T0JhbGKUIDlACglHyTlouU5vCpUEHDyLvwrHFylpk= 18 | =b/6f 19 | -----END PGP PUBLIC KEY BLOCK----- 20 | -------------------------------------------------------------------------------- /system/t04_mirror/RenameMirror1Test_mirror_list: -------------------------------------------------------------------------------- 1 | List of mirrors: 2 | * [gnuplot-maverick-src]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick [src] 3 | * [gnuplot-maverick]: http://ppa.launchpad.net/gladky-anton/gnuplot/ubuntu/ maverick 4 | * [sensu]: http://repos.sensuapp.org/apt/ sensu 5 | * [wheezy-backports-src]: http://mirror.yandex.ru/debian/ wheezy-backports [src] 6 | * [wheezy-backports]: http://mirror.yandex.ru/debian/ wheezy-backports 7 | * [wheezy-contrib-src]: http://mirror.yandex.ru/debian/ wheezy [src] 8 | * [wheezy-contrib]: http://mirror.yandex.ru/debian/ wheezy 9 | * [wheezy-main-cool]: http://mirror.yandex.ru/debian/ wheezy 10 | * [wheezy-main-src]: http://mirror.yandex.ru/debian/ wheezy [src] 11 | * [wheezy-non-free-src]: http://mirror.yandex.ru/debian/ wheezy [src] 12 | * [wheezy-non-free]: http://mirror.yandex.ru/debian/ wheezy 13 | * [wheezy-updates-src]: http://mirror.yandex.ru/debian/ wheezy-updates [src] 14 | * [wheezy-updates]: http://mirror.yandex.ru/debian/ wheezy-updates 15 | 16 | To get more information about mirror, run `aptly mirror show `. 17 | -------------------------------------------------------------------------------- /system/t03_help/MirrorHelpTest_gold: -------------------------------------------------------------------------------- 1 | aptly mirror - manage mirrors of remote repositories 2 | 3 | Commands: 4 | 5 | create create new mirror 6 | drop delete mirror 7 | edit edit properties of mirorr 8 | list list mirrors 9 | rename renames mirror 10 | search search mirror for packages matching query 11 | show show details about mirror 12 | update update mirror 13 | 14 | Use "mirror help " for more information about a command. 15 | 16 | 17 | Options: 18 | -architectures="": list of architectures to consider during (comma-separated), default to all available 19 | -config="": location of configuration file (default locations are /etc/aptly.conf, ~/.aptly.conf) 20 | -dep-follow-all-variants=false: when processing dependencies, follow a & b if depdency is 'a|b' 21 | -dep-follow-recommends=false: when processing dependencies, follow Recommends 22 | -dep-follow-source=false: when processing dependencies, follow from binary to Source packages 23 | -dep-follow-suggests=false: when processing dependencies, follow Suggests 24 | -------------------------------------------------------------------------------- /system/t06_publish/PublishRepo1Test_binary: -------------------------------------------------------------------------------- 1 | 2 | 3 | (name, value) pairs from the user, via conventional methods such as 4 | . 5 | . 6 | Boost version (currently 1.49). 7 | Library to let program developers obtain program options, that is 8 | This package forms part of the Boost C++ Libraries collection. 9 | This package is a dependency package, which depends on Debian's default 10 | command line and config file. 11 | Architecture: i386 12 | Depends: libboost-program-options1.49-dev 13 | Description: program options library for C++ (default version) 14 | Filename: pool/main/b/boost-defaults/libboost-program-options-dev_1.49.0.1_i386.deb 15 | Homepage: http://www.boost.org/libs/program_options/ 16 | Installed-Size: 26 17 | MD5sum: 0035d7822b2f8f0ec4013f270fd650c2 18 | Maintainer: Debian Boost Team 19 | Package: libboost-program-options-dev 20 | Priority: optional 21 | SHA1: 36895eb64cfe89c33c0a2f7ac2f0c6e0e889e04b 22 | SHA256: c76b4bd12fd92e4dfe1b55b18a67a669d92f62985d6a96c8a21d96120982cf12 23 | Section: libdevel 24 | Size: 2738 25 | Source: boost-defaults 26 | Version: 1.49.0.1 --------------------------------------------------------------------------------