42
41
HASH1 = base64.decodestring("/ezv4AefpJJ8DuYFSq4RiEHJYP4=")
43
42
HASH2 = base64.decodestring("glP4DwWOfMULm0AkRXYsH/exehc=")
44
43
HASH3 = base64.decodestring("NJM05mj86veaSInYxxqL1wahods=")
47
def create_repository(target_dir):
44
HASH4 = 'c\xc1\xe6\xe1U\xde\xb6:\x03\xcb\xb9\xdc\xee\x91\xb7"\xc9\xb1\xe4\x8f'
45
HASH5 = '|\x93K\xe0gx\xba\xe4\x85\x84\xd9\xf4%\x8bB\xbdR\x97\xdb\xfc'
46
HASH6 = '\xedt!=,\\\rk\xa7\xe3$\xfb\x06\x9c\x88\x92)\xc2\xfb\xd6'
47
HASH7 = 'D\xb1\xb6\xf5\xaa\xa8i\x84\x07#x\x97\x01\xf7`.\x9b\xde\xfb '
49
RELEASES = {"hardy": """Origin: Ubuntu
53
Date: Tue, 31 Mar 2009 13:30:02 +0000
54
Architectures: amd64 i386
55
Components: main restricted
57
356312bc1c0ab2b8dbe5c67f09879497 827 main/binary-i386/Packages
58
ad2d9b94381264ce25cda7cfa1b2da03 555 main/binary-i386/Packages.gz
59
2f6ee66ed2d2b4115fabc8eed428e42e 78 main/binary-i386/Release
60
f0fd5c1bb18584cf07f9bf4a9f2e6d92 605 main/binary-amd64/Packages
61
98860034ca03a73a9face10af8238a81 407 main/binary-amd64/Packages.gz
62
7e40db962fe49b6db232bf559cf6f79d 79 main/binary-amd64/Release
63
99e2e7213a7fdd8dd6860623bbf700e6 538 restricted/binary-i386/Packages
64
7771307958f2800bafb5cd96292308bd 384 restricted/binary-i386/Packages.gz
65
8686ad9c5d83484dc66a1eca2bd8030f 84 restricted/binary-i386/Release
66
99e2e7213a7fdd8dd6860623bbf700e6 538 restricted/binary-amd64/Packages
67
7771307958f2800bafb5cd96292308bd 384 restricted/binary-amd64/Packages.gz
68
6e24798a6089cd3a21226182784995e9 85 restricted/binary-amd64/Release
70
1f39494284f8da4a1cdd788a3d91a048c5edf7f5 827 main/binary-i386/Packages
71
e79a66d7543f24f77a9ffe1409431ae717781375 555 main/binary-i386/Packages.gz
72
5fe86036c60d6210b662df3acc238e2936f03581 78 main/binary-i386/Release
73
37ba69be70f4a79506038c0124293187bc879014 605 main/binary-amd64/Packages
74
65dca66c72b18d59cdcf671775104e86cbe2123a 407 main/binary-amd64/Packages.gz
75
c9810732c61aa7de2887b5194c6a09d0b6118664 79 main/binary-amd64/Release
76
4cdb64c700f798f719f5c81ae42e44582be094c5 538 restricted/binary-i386/Packages
77
190f980fd80d58284129ee050f9eb70b9590fedb 384 restricted/binary-i386/Packages.gz
78
b1d1a4d57f5c8d70184c9661a087b8a92406c76d 84 restricted/binary-i386/Release
79
4cdb64c700f798f719f5c81ae42e44582be094c5 538 restricted/binary-amd64/Packages
80
190f980fd80d58284129ee050f9eb70b9590fedb 384 restricted/binary-amd64/Packages.gz
81
4bd64fb2ef44037254729ab514d3403a65db7123 85 restricted/binary-amd64/Release
83
"hardy-updates": """Origin: Ubuntu
85
Codename: hardy-updates
87
Date: Tue, 31 Mar 2009 13:32:17 +0000
88
Architectures: i386 amd64
89
Components: main restricted
91
a23ba734dc4fe7c1ec8dc960cc670b8e 1227 main/binary-i386/Packages
92
2d6d271964be8000808abfa2b0e999b7 713 main/binary-i386/Packages.gz
93
2f6ee66ed2d2b4115fabc8eed428e42e 78 main/binary-i386/Release
94
a23ba734dc4fe7c1ec8dc960cc670b8e 1227 main/binary-amd64/Packages
95
2d6d271964be8000808abfa2b0e999b7 713 main/binary-amd64/Packages.gz
96
7e40db962fe49b6db232bf559cf6f79d 79 main/binary-amd64/Release
97
d41d8cd98f00b204e9800998ecf8427e 0 restricted/binary-i386/Packages
98
7029066c27ac6f5ef18d660d5741979a 20 restricted/binary-i386/Packages.gz
99
8686ad9c5d83484dc66a1eca2bd8030f 84 restricted/binary-i386/Release
100
d41d8cd98f00b204e9800998ecf8427e 0 restricted/binary-amd64/Packages
101
7029066c27ac6f5ef18d660d5741979a 20 restricted/binary-amd64/Packages.gz
102
6e24798a6089cd3a21226182784995e9 85 restricted/binary-amd64/Release
104
9867c9f7ebbb5741fc589d0d4395ea8f74f3b5e4 1227 main/binary-i386/Packages
105
2a7061fa162a607a63453c0360678052a38f0259 713 main/binary-i386/Packages.gz
106
5fe86036c60d6210b662df3acc238e2936f03581 78 main/binary-i386/Release
107
9867c9f7ebbb5741fc589d0d4395ea8f74f3b5e4 1227 main/binary-amd64/Packages
108
2a7061fa162a607a63453c0360678052a38f0259 713 main/binary-amd64/Packages.gz
109
c9810732c61aa7de2887b5194c6a09d0b6118664 79 main/binary-amd64/Release
110
da39a3ee5e6b4b0d3255bfef95601890afd80709 0 restricted/binary-i386/Packages
111
46c6643f07aa7f6bfe7118de926b86defc5087c4 20 restricted/binary-i386/Packages.gz
112
b1d1a4d57f5c8d70184c9661a087b8a92406c76d 84 restricted/binary-i386/Release
113
da39a3ee5e6b4b0d3255bfef95601890afd80709 0 restricted/binary-amd64/Packages
114
46c6643f07aa7f6bfe7118de926b86defc5087c4 20 restricted/binary-amd64/Packages.gz
115
4bd64fb2ef44037254729ab514d3403a65db7123 85 restricted/binary-amd64/Release
120
{"amd64": """Package: kairos
123
Maintainer: Free Ekanayaka <freee@debian.org>
125
Pre-Depends: libaugeas0, python-augeas, augeas-tools, jackd, rotter, monit, darkice, soma, python-remix, nfs-kernel-server, icecast2
128
Filename: pool/restricted/k/kairos/kairos_0.0.8_all.deb
130
SHA1: 1e5cc71cbd33d2b26a8feb19a48e815f271cd335
131
MD5sum: 5fd717ed3d15db25ffaa9d05fec62e42
132
Description: kairos customisation package
133
This package configures and customises an kairos
137
"i386": """Package: kairos
140
Maintainer: Free Ekanayaka <freee@debian.org>
142
Pre-Depends: libaugeas0, python-augeas, augeas-tools, jackd, rotter, monit, darkice, soma, python-remix, nfs-kernel-server, icecast2
145
Filename: pool/restricted/k/kairos/kairos_0.0.8_all.deb
147
SHA1: 1e5cc71cbd33d2b26a8feb19a48e815f271cd335
148
MD5sum: 5fd717ed3d15db25ffaa9d05fec62e42
149
Description: kairos customisation package
150
This package configures and customises an kairos
155
{"amd64": """Package: libclthreads2
159
Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
161
Depends: libc6 (>= 2.3.2), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1)
164
Filename: pool/main/c/clthreads/libclthreads2_2.4.0-1_amd64.deb
166
SHA1: dc6cb78896642dd436851888b8bd4454ab8f421b
167
MD5sum: 19960adb88e178fb7eb4997b47eee05b
168
Description: POSIX threads C++ access library
169
C++ wrapper library around the POSIX threads API. This package includes
170
the shared library object.
173
"i386": """Package: syslinux
174
Version: 2:3.73+dfsg-2
176
Maintainer: Daniel Baumann <daniel@debian.org>
178
Depends: libc6 (>= 2.7-1), syslinux-common (= 2:3.73+dfsg-2), dosfstools, mtools
179
Homepage: http://syslinux.zytor.com/
182
Filename: pool/main/s/syslinux/syslinux_3.73+dfsg-2_i386.deb
184
SHA1: 6edf6a7e81a5e9759270872e45c782394dfa85e5
185
MD5sum: ae8baa9f6c6a172a3b127af1e6675046
186
Description: utilities for the syslinux bootloaders
187
SYSLINUX is a suite of lightweight bootloaders, currently supporting DOS FAT
188
filesystems (SYSLINUX), Linux ext2/ext3 filesystems (EXTLINUX), PXE network
189
booting (PXELINUX), or bootable "El Torito" ISO 9660 CD-ROMs (ISOLINUX). It
190
also includes a tool, MEMDISK, which loads legacy operating systems (such as
191
DOS) from these media.
199
{"amd64": """Package: rebuildd
202
Maintainer: Julien Danjou <acid@debian.org>
204
Depends: python (>= 2.5), python-support (>= 0.7.1), lsb-base, python-sqlobject, python-apt
205
Recommends: pbuilder, python-gdchart2, python-webpy
209
Filename: pool/main/r/rebuildd/rebuildd_0.3.5_all.deb
211
SHA1: 5446cd5c8a29212b403214884cae96f14824a573
212
MD5sum: 92e81240c2caf286ad103e44dcdc44e1
213
Description: build daemon aiming at rebuilding Debian packages
214
This software allows you to manage a set of jobs. Each job is a package
215
rebuilding task. Rebuilding is done by pbuilder (or cowbuilder if you want),
216
or anything else, since everything is customizable via configuration file.
217
It can also send build logs by email, event each log can be sent to a different
220
rebuildd is multi-threaded, so you can run multiple build jobs in parallel.
221
It is also administrable via a telnet interface. A Web interface is also
222
embedded so you can see your jobs queue and watch log file in real-time in your
225
rebuildd is designed to be run on multiple hosts even with different
226
architecture set, and to parallelize the rebuild tasks.
229
"i386": """Package: rebuildd
232
Maintainer: Julien Danjou <acid@debian.org>
234
Depends: python (>= 2.5), python-support (>= 0.7.1), lsb-base, python-sqlobject, python-apt
235
Recommends: pbuilder, python-gdchart2, python-webpy
239
Filename: pool/main/r/rebuildd/rebuildd_0.3.5_all.deb
241
SHA1: 5446cd5c8a29212b403214884cae96f14824a573
242
MD5sum: 92e81240c2caf286ad103e44dcdc44e1
243
Description: build daemon aiming at rebuilding Debian packages
244
This software allows you to manage a set of jobs. Each job is a package
245
rebuilding task. Rebuilding is done by pbuilder (or cowbuilder if you want),
246
or anything else, since everything is customizable via configuration file.
247
It can also send build logs by email, event each log can be sent to a different
250
rebuildd is multi-threaded, so you can run multiple build jobs in parallel.
251
It is also administrable via a telnet interface. A Web interface is also
252
embedded so you can see your jobs queue and watch log file in real-time in your
255
rebuildd is designed to be run on multiple hosts even with different
256
architecture set, and to parallelize the rebuild tasks.
261
def create_simple_repository(target_dir):
263
Create a simple APT repository with a single Packages.gz in C{target_dir}.
48
265
filename = os.path.join(target_dir, "Packages.gz")
49
266
file = open(filename, "w")
50
267
file.write(base64.decodestring("""