]> git.decadent.org.uk Git - dak.git/log
dak.git
8 years agoFix typos in the documentation
Jakub Wilk [Sat, 12 Dec 2015 21:39:26 +0000 (22:39 +0100)]
Fix typos in the documentation

8 years agoNew files in Release file - adjust the check
Joerg Jaspert [Sat, 12 Dec 2015 12:49:53 +0000 (13:49 +0100)]
New files in Release file - adjust the check

8 years agoAlso generate pdiff files for source Contents
Joerg Jaspert [Sat, 12 Dec 2015 12:46:11 +0000 (13:46 +0100)]
Also generate pdiff files for source Contents

8 years agoFix pdiff Index file hardlink handling
Joerg Jaspert [Tue, 8 Dec 2015 22:45:01 +0000 (23:45 +0100)]
Fix pdiff Index file hardlink handling

Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agogenerate SHA256 hashes for pdiff patches
David Kalnischkies [Wed, 28 Oct 2015 20:20:30 +0000 (21:20 +0100)]
generate SHA256 hashes for pdiff patches

Preparing for phasing out SHA1 means first and for most eliminating hard
dependencies on it, so lets include SHA256 hashes in .diff/Index as new
fields as this keeps backward compatibility.

Signed-off-by: David Kalnischkies <david@kalnischkies.de>
8 years agoinclude hashsum for compressed patch file in .diff/Index
David Kalnischkies [Wed, 28 Oct 2015 19:36:20 +0000 (20:36 +0100)]
include hashsum for compressed patch file in .diff/Index

APT prefers to download files it has hashes for to check it actually got
the file it wanted instead of some man-in-the-middled file (by an attacker
or simply by a webportal returning a login mask for every request).
Giving it the hash of the compressed file saves APT from needing to
uncompress the patch before being able to verify its integrity.

Signed-off-by: David Kalnischkies <david@kalnischkies.de>
Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoAdjust the regexes used for DEP-11 files
Matthias Klumpp [Tue, 8 Dec 2015 20:50:46 +0000 (21:50 +0100)]
Adjust the regexes used for DEP-11 files

8 years agodep11 people not knowing their own layout poooooooooor dep11
Joerg Jaspert [Sun, 6 Dec 2015 13:49:16 +0000 (14:49 +0100)]
dep11 people not knowing their own layout poooooooooor dep11

Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoFix cd
Joerg Jaspert [Sun, 6 Dec 2015 13:42:14 +0000 (14:42 +0100)]
Fix cd

Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoTarget dir may not yet exist
Joerg Jaspert [Sun, 6 Dec 2015 13:37:17 +0000 (14:37 +0100)]
Target dir may not yet exist

Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoA for loop like a done, not a fi, at the end
Joerg Jaspert [Sun, 6 Dec 2015 13:01:24 +0000 (14:01 +0100)]
A for loop like a done, not a fi, at the end

8 years agoMerge remote-tracking branch 'ximion/dep11' into dmerge
Joerg Jaspert [Sun, 6 Dec 2015 12:54:27 +0000 (13:54 +0100)]
Merge remote-tracking branch 'ximion/dep11' into dmerge

* ximion/dep11:
  Include AppStream metadata from the generator server

Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoInclude AppStream metadata from the generator server
Matthias Klumpp [Sat, 5 Dec 2015 22:09:46 +0000 (23:09 +0100)]
Include AppStream metadata from the generator server

This patch pulls AppStream/DEP-11 metadata from the server where it was
generated, then validates it for format issues and adds it to the
archive.

8 years agoPass suite name to the autobyhand scripts
Julien Cristau [Wed, 2 Dec 2015 21:11:48 +0000 (22:11 +0100)]
Pass suite name to the autobyhand scripts

To: debian-dak@lists.debian.org
Cc: Julien Cristau <jcristau@debian.org>
Date: Wed,  2 Dec 2015 08:01:37 +0100 (14 hours, 9 minutes, 8 seconds ago)
Resent-From: debian-dak@lists.debian.org

We have it readily available, and most scripts try to get it back from
the changes file anyway.

This makes things consistent for the scripts, so they won't get confused
by aliases (due to codenames or suite mappings) depending on whatever is
in the .changes file.

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoAdd Changelogs field to Release file
Ansgar Burchardt [Tue, 1 Dec 2015 22:30:42 +0000 (23:30 +0100)]
Add Changelogs field to Release file

Reference: https://lists.debian.org/debian-dak/2015/08/msg00012.html

8 years agoSQLAlchemy version 1.0 might also be okay
Ansgar Burchardt [Tue, 1 Dec 2015 22:29:41 +0000 (23:29 +0100)]
SQLAlchemy version 1.0 might also be okay

Maybe this check should eventually be dropped?

8 years agodebianqueued: No early notifications
Ansgar Burchardt [Wed, 18 Nov 2015 13:33:30 +0000 (14:33 +0100)]
debianqueued: No early notifications

debianqueued used to send early warnings about invalid uploads, but
relied on being able to (ab)use the setgid bit on the .changes file to
keep track for which uploads it has already complained. If it was
unable to set the setgid bit, it would send mails every run.

This change removes the early warnings. A mail will only be sent when
debianqueued gives up on the upload.

8 years agoUse /srv instead of /org
Ansgar Burchardt [Sun, 8 Nov 2015 16:06:37 +0000 (17:06 +0100)]
Use /srv instead of /org

8 years agosecurity-master.d.o is moving to seger.d.o
Ansgar Burchardt [Sun, 8 Nov 2015 15:33:48 +0000 (16:33 +0100)]
security-master.d.o is moving to seger.d.o

8 years agoAllow source-only uploads with 'sid' as distribution
Julien Cristau [Tue, 27 Oct 2015 17:06:15 +0000 (17:06 +0000)]
Allow source-only uploads with 'sid' as distribution

We only allowed 'unstable' or 'experimental'.

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Ansgar Burchardt <ansgar@debian.org>
8 years agoftp-master.d.o: Redirect /testing/* to release.d.o
Ansgar Burchardt [Sun, 8 Nov 2015 14:29:24 +0000 (15:29 +0100)]
ftp-master.d.o: Redirect /testing/* to release.d.o

Currently /testing is a symlink, but this means the same content is
available under different addresses.

8 years agoAdjust to deal with the new Debian supplementaryGid
Joerg Jaspert [Sun, 18 Oct 2015 12:17:05 +0000 (14:17 +0200)]
Adjust to deal with the new Debian supplementaryGid

Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoSwitch from gid=800 to supplementaryGid=Debian
Joerg Jaspert [Sat, 17 Oct 2015 12:12:28 +0000 (14:12 +0200)]
Switch from gid=800 to supplementaryGid=Debian

Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoFix typo in the NEW email template
Jakub Wilk [Mon, 12 Oct 2015 17:31:57 +0000 (19:31 +0200)]
Fix typo in the NEW email template

8 years agolintian.tags: remove binary-file-compressed-with-upx
Jakub Wilk [Sun, 11 Oct 2015 15:08:45 +0000 (17:08 +0200)]
lintian.tags: remove binary-file-compressed-with-upx

This tag was removed from Lintian (2.5.33).

8 years agoconfig-security: also refresh Release for buildd archive weekly
Ansgar Burchardt [Sat, 3 Oct 2015 12:11:43 +0000 (14:11 +0200)]
config-security: also refresh Release for buildd archive weekly

It looks like we actually had a week without uploads to the security
archive and the Release file expired.

8 years ago[PATCH] Add option to make-maintainers to print data to stdout
Matthias Klumpp [Tue, 26 Mar 2013 22:32:52 +0000 (23:32 +0100)]
[PATCH] Add option to make-maintainers to print data to stdout

Add option which makes make-maintainer print the maintainer data to
stdout instead of writing it to files.

8 years ago[PATCH] Add option to make-maintainers to only output source packages
Matthias Klumpp [Tue, 26 Mar 2013 22:31:16 +0000 (23:31 +0100)]
[PATCH] Add option to make-maintainers to only output source packages

This is used in Tanglu to feed it's BTS

8 years agoMerge remote-tracking branch 'lamby/misc-fixes-796786' into merge
Joerg Jaspert [Thu, 10 Sep 2015 20:07:55 +0000 (22:07 +0200)]
Merge remote-tracking branch 'lamby/misc-fixes-796786' into merge

* lamby/misc-fixes-796786:
  daklib/utils.py: mandantory -> mandatory spelling error
  daliblib/dak_exceptions: Add trailing comma to avoid future VCS noise
  tests/test_packagelist.py: make executable
  dalkib/dbconn.py: Mention which version is installed in sqlalchemy check
  dak/copy_installer.py: Include which directory doesn't exist in exception

8 years agoMerge remote-tracking branch 'lamby/improve-parse-changes-tests-796787' into merge
Joerg Jaspert [Thu, 10 Sep 2015 20:06:26 +0000 (22:06 +0200)]
Merge remote-tracking branch 'lamby/improve-parse-changes-tests-796787' into merge

* lamby/improve-parse-changes-tests-796787:
  tests/test_parse_changes.py: Move test to ParseDscTestCase as we call with dsc_file=1
  tests/test_parse_changes.py: Test that an contentless .dsc fails correctly
  tests/test_parse_changes.py: Actually use the blank file test fixture
  tests/test_parse_changes.py: Rewrite loose and difficult-to-use-correctly assertFails
  tests/test_parse_changes.py: Actually set dsc_file=1 when testing .dsc

8 years agoOnly copy existing byhand files.
Ansgar Burchardt [Mon, 7 Sep 2015 16:57:03 +0000 (18:57 +0200)]
Only copy existing byhand files.

8 years agoAccept +kbsdXuY for kfreebsd.
Ansgar Burchardt [Mon, 7 Sep 2015 16:47:26 +0000 (18:47 +0200)]
Accept +kbsdXuY for kfreebsd.

8 years agoAutomate updating README files
Ansgar Burchardt [Sat, 5 Sep 2015 11:30:24 +0000 (13:30 +0200)]
Automate updating README files

It would be better if the README files were generated from a template
file, but this is better than nothing.

8 years agoUpdate for 8.2
Ansgar Burchardt [Sat, 5 Sep 2015 09:52:17 +0000 (11:52 +0200)]
Update for 8.2

8 years agoMerge remote-tracking branch 'lamby/update-debian-packaging'
Ansgar Burchardt [Fri, 4 Sep 2015 18:13:33 +0000 (20:13 +0200)]
Merge remote-tracking branch 'lamby/update-debian-packaging'

8 years agoMerge remote-tracking branches 'nthykier/fix-generate-releases' and 'nthykier/fix...
Ansgar Burchardt [Fri, 4 Sep 2015 18:06:55 +0000 (20:06 +0200)]
Merge remote-tracking branches 'nthykier/fix-generate-releases' and 'nthykier/fix-auto-decrufter'

8 years agogenerate-releases: Use the right key when testing uncompnotseen
Niels Thykier [Fri, 4 Sep 2015 16:38:02 +0000 (18:38 +0200)]
generate-releases: Use the right key when testing uncompnotseen

This issue caused dak to not generate hashes for uncompressed Contents
files for some architectures in some components.  A bit of context,
there were up to 4 Contents files per architecture:

 * Contents-ARCH
 * main/Contents-ARCH
 * contrib/Contents-ARCH
 * non-free/Contents-ARCH

Any */Contents-ARCH that appeared on the filesystem AFTER the legacy
"Contents-ARCH" would be ignored, because generate-releases used the
wrong key to check if the file was already in uncompnotseen.

Signed-off-by: Niels Thykier <niels@thykier.net>
8 years agogenerate-releases: Fix typo
Niels Thykier [Fri, 4 Sep 2015 16:37:05 +0000 (18:37 +0200)]
generate-releases: Fix typo

Signed-off-by: Niels Thykier <niels@thykier.net>
8 years agoauto-decruft: Register all members of groups when merging groups
Niels Thykier [Fri, 4 Sep 2015 15:16:37 +0000 (17:16 +0200)]
auto-decruft: Register all members of groups when merging groups

When merging two groups of auto-decruftable packages, remember to
register all members of the combined group so dak can do a reverse
look up later.

Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago"Update" Debian packaging
Chris Lamb [Wed, 2 Sep 2015 15:05:10 +0000 (16:05 +0100)]
"Update" Debian packaging

Whilst the packaging is obviously not for use, I'm finding it extremely
useful at least having the Build-Depends at a point where it will run the
tests.

It might be tempting to remove debian/ entirely, but Build-Depends is
just too useful for specifying, well, dependencies that tools such as
mk-build-deps can consume just like other packages.

Signed-off-by: Chris Lamb <lamby@debian.org>
8 years agoUps, architectures have more than just one character around here
Joerg Jaspert [Sun, 30 Aug 2015 21:26:25 +0000 (23:26 +0200)]
Ups, architectures have more than just one character around here

Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoClearly seperate the various steps of dinstall in the log
Joerg Jaspert [Sun, 30 Aug 2015 21:25:03 +0000 (23:25 +0200)]
Clearly seperate the various steps of dinstall in the log

Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoAlso ignore non-existant unpacked Content files when checking release files
Joerg Jaspert [Sun, 30 Aug 2015 21:21:38 +0000 (23:21 +0200)]
Also ignore non-existant unpacked Content files when checking release files

Signed-off-by: Joerg Jaspert <joerg@debian.org>
8 years agoMerge remote-tracking branch 'nthykier/checksumed-contents' into merge
Joerg Jaspert [Sat, 29 Aug 2015 07:46:57 +0000 (09:46 +0200)]
Merge remote-tracking branch 'nthykier/checksumed-contents' into merge

* nthykier/checksumed-contents:
  generate_releases: Remove unneeded .keys() calls
  Always provide a checksum of uncompressed Contents files

8 years agogenerate_releases: Remove unneeded .keys() calls
Niels Thykier [Thu, 27 Aug 2015 06:41:35 +0000 (08:41 +0200)]
generate_releases: Remove unneeded .keys() calls

Signed-off-by: Niels Thykier <niels@thykier.net>
8 years agoAlways provide a checksum of uncompressed Contents files
Niels Thykier [Thu, 27 Aug 2015 06:33:04 +0000 (08:33 +0200)]
Always provide a checksum of uncompressed Contents files

The new version of apt in experimental will insist on having the
checksum of the uncompressed Contents file, if it is to download the
Contents file.

Signed-off-by: Niels Thykier <niels@thykier.net>
8 years agotests/test_parse_changes.py: Move test to ParseDscTestCase as we call with dsc_file=1
Chris Lamb [Mon, 24 Aug 2015 13:55:44 +0000 (15:55 +0200)]
tests/test_parse_changes.py: Move test to ParseDscTestCase as we call with dsc_file=1

Signed-off-by: Chris Lamb <lamby@debian.org>
8 years agotests/test_parse_changes.py: Test that an contentless .dsc fails correctly
Chris Lamb [Mon, 24 Aug 2015 13:25:52 +0000 (15:25 +0200)]
tests/test_parse_changes.py: Test that an contentless .dsc fails correctly

8 years agotests/test_parse_changes.py: Actually use the blank file test fixture
Chris Lamb [Mon, 24 Aug 2015 12:59:09 +0000 (14:59 +0200)]
tests/test_parse_changes.py: Actually use the blank file test fixture

Was added in 47955ee9a5730c81b21ca9f31da4c176a82bcdc4 but never actually
used.

Signed-off-by: Chris Lamb <lamby@debian.org>
8 years agotests/test_parse_changes.py: Rewrite loose and difficult-to-use-correctly assertFails
Chris Lamb [Mon, 24 Aug 2015 13:56:18 +0000 (15:56 +0200)]
tests/test_parse_changes.py: Rewrite loose and difficult-to-use-correctly assertFails

Signed-off-by: Chris Lamb <lamby@debian.org>
8 years agotests/test_parse_changes.py: Actually set dsc_file=1 when testing .dsc
Chris Lamb [Mon, 24 Aug 2015 14:18:57 +0000 (16:18 +0200)]
tests/test_parse_changes.py: Actually set dsc_file=1 when testing .dsc

Signed-off-by: Chris Lamb <lamby@debian.org>
8 years agodaklib/utils.py: mandantory -> mandatory spelling error
Chris Lamb [Mon, 24 Aug 2015 02:05:55 +0000 (04:05 +0200)]
daklib/utils.py: mandantory -> mandatory spelling error

Signed-off-by: Chris Lamb <lamby@debian.org>
8 years agodaliblib/dak_exceptions: Add trailing comma to avoid future VCS noise
Chris Lamb [Mon, 24 Aug 2015 01:41:46 +0000 (03:41 +0200)]
daliblib/dak_exceptions: Add trailing comma to avoid future VCS noise

Signed-off-by: Chris Lamb <lamby@debian.org>
8 years agotests/test_packagelist.py: make executable
Chris Lamb [Mon, 24 Aug 2015 01:28:05 +0000 (03:28 +0200)]
tests/test_packagelist.py: make executable

8 years agodalkib/dbconn.py: Mention which version is installed in sqlalchemy check
Chris Lamb [Mon, 24 Aug 2015 01:24:29 +0000 (03:24 +0200)]
dalkib/dbconn.py: Mention which version is installed in sqlalchemy check

8 years agodak/copy_installer.py: Include which directory doesn't exist in exception
Chris Lamb [Mon, 24 Aug 2015 01:23:49 +0000 (03:23 +0200)]
dak/copy_installer.py: Include which directory doesn't exist in exception

Signed-off-by: Chris Lamb <lamby@debian.org>
8 years agoRemove install_date from not_null_constraints
Mark Hymers [Fri, 21 Aug 2015 15:53:59 +0000 (15:53 +0000)]
Remove install_date from not_null_constraints

Signed-off-by: Mark Hymers <mhy@debian.org>
8 years agoSet install_date properly for source table
Mark Hymers [Fri, 21 Aug 2015 13:41:27 +0000 (13:41 +0000)]
Set install_date properly for source table

Signed-off-by: Mark Hymers <mhy@debian.org>
8 years agoReport only obsolete source packages older than one day
Ansgar Burchardt [Fri, 21 Aug 2015 07:47:39 +0000 (09:47 +0200)]
Report only obsolete source packages older than one day

This should help with avoiding removal of source-only uploads where no
binary was built yet.

8 years agoDo not delete files starting with a dot.
Ansgar Burchardt [Fri, 21 Aug 2015 06:56:52 +0000 (08:56 +0200)]
Do not delete files starting with a dot.

28903fa31f90164d3ea784b31be0e9a19fc5fd8c tried to allow temporary
files used by rsync, however these started with a dot and were still
deleted.

8 years agoqueued: Add buildd-mips64el-keyring.gpg
Ansgar Burchardt [Thu, 20 Aug 2015 10:32:18 +0000 (12:32 +0200)]
queued: Add buildd-mips64el-keyring.gpg

8 years agoAllow *.asc to be part of source packages
Ansgar Burchardt [Tue, 18 Aug 2015 20:20:06 +0000 (22:20 +0200)]
Allow *.asc to be part of source packages

The patch in 9a1cfa782b2147f017debea6819d71707ff5ab7d is not enough to
start accepting *.asc.

Bug: https://bugs.debian.org/759401

8 years agoDefine regular expressions only once
Ansgar Burchardt [Tue, 18 Aug 2015 20:19:18 +0000 (22:19 +0200)]
Define regular expressions only once

Two regexes were defined twice.

8 years agoRemove more unused regular expressions.
Ansgar Burchardt [Tue, 18 Aug 2015 20:18:09 +0000 (22:18 +0200)]
Remove more unused regular expressions.

8 years agoAllow *.asc to be uploaded
Ansgar Burchardt [Tue, 18 Aug 2015 19:47:18 +0000 (21:47 +0200)]
Allow *.asc to be uploaded

Source packages should be allowed to include an optional upstream
signature in a *.asc file.

8 years agoRemove unused regular expression.
Ansgar Burchardt [Tue, 18 Aug 2015 19:44:02 +0000 (21:44 +0200)]
Remove unused regular expression.

8 years agoconfig-upload: allow optional suffix used temporarily by rsync
Ansgar Burchardt [Tue, 18 Aug 2015 19:38:14 +0000 (21:38 +0200)]
config-upload: allow optional suffix used temporarily by rsync

rsync appends a suffix while uploading and renames them later. We
don't want to remove in-progress uploads so we have to allow these.

8 years agosync-dd: exclude /archive
Ansgar Burchardt [Mon, 17 Aug 2015 10:02:03 +0000 (12:02 +0200)]
sync-dd: exclude /archive

8 years agoMerge branch 'debug'
Ansgar Burchardt [Sun, 16 Aug 2015 18:45:18 +0000 (20:45 +0200)]
Merge branch 'debug'

8 years agoAllow packages not ending in -dbgsym in the debug section
Ansgar Burchardt [Sun, 16 Aug 2015 18:34:48 +0000 (20:34 +0200)]
Allow packages not ending in -dbgsym in the debug section

8 years agoThere should only be one place to check for a debug package
Ansgar Burchardt [Sun, 16 Aug 2015 18:33:13 +0000 (20:33 +0200)]
There should only be one place to check for a debug package

8 years agoChoose suite to redirect upload to before installing source
Ansgar Burchardt [Sun, 16 Aug 2015 18:30:40 +0000 (20:30 +0200)]
Choose suite to redirect upload to before installing source

8 years agoFix field name in error message.
Ansgar Burchardt [Sun, 16 Aug 2015 18:40:37 +0000 (20:40 +0200)]
Fix field name in error message.

8 years agoAdd debug binary diverting for archive install
Paul Tagliamonte [Sat, 15 Aug 2015 16:43:46 +0000 (18:43 +0200)]
Add debug binary diverting for archive install

For any debug packages, redirect binary packages to the binary debug
suite if set, otherwise install as normal.

8 years agoAlter process-policy to copy debug debs into the debugsuite
Paul Tagliamonte [Sat, 15 Aug 2015 15:23:30 +0000 (17:23 +0200)]
Alter process-policy to copy debug debs into the debugsuite

This is the first step in creating a debug deb suite for the archive,
and diverts debs that would be added to a suite into the debug suite
linked.

In the event the suite does not support diverting debug debs, the
process-new routine will accept the package into the target suite.

8 years agoUpdate projectb to know about suite.debugsuite
Paul Tagliamonte [Sat, 15 Aug 2015 15:22:27 +0000 (17:22 +0200)]
Update projectb to know about suite.debugsuite

 Alter the schema to add `debugsuite` to the suite table, to point at
 the suite to copy debug debs to.

8 years agoAdd unstable to exception list for source-only uploads
Ansgar Burchardt [Sat, 15 Aug 2015 05:39:45 +0000 (07:39 +0200)]
Add unstable to exception list for source-only uploads

8 years agoModify binary package name check to accept -dbgsym
Paul Tagliamonte [Fri, 14 Aug 2015 19:33:47 +0000 (21:33 +0200)]
Modify binary package name check to accept -dbgsym

 In particular, we should tolerate .deb packages that are in the
 Files, but are not present in the Binary package listing, since
 adding them into debian/control is a pretty bad idea.

 debhelper (currently, this will be default later), when givin
 `DH_BUILD_DDEBS=1` will build DH_BUILD_DDEBS that are in the Files
 list, named foo-dbgsym.

 The check now validates that the -dbgsym package corresponds to
 a package that *is* listed in the Binary package listing, and in
 the section "debug".

8 years agoReorganize code a bit.
Ansgar Burchardt [Fri, 14 Aug 2015 14:01:14 +0000 (16:01 +0200)]
Reorganize code a bit.

8 years agoFix typo.
Ansgar Burchardt [Fri, 14 Aug 2015 11:14:15 +0000 (13:14 +0200)]
Fix typo.

8 years agodak: Add import-repository subcommand.
Ansgar Burchardt [Wed, 12 Aug 2015 15:02:41 +0000 (17:02 +0200)]
dak: Add import-repository subcommand.

8 years agoInitial work on import-repository
Ansgar Burchardt [Tue, 11 Aug 2015 19:39:27 +0000 (21:39 +0200)]
Initial work on import-repository

The new subcommand allows importing packages from an existing
repository. It is currently intended to be used on Debian Ports to
import source and arch:all packages from the main archive.

There are still several places that need work.

8 years agoUse HashedFile.input_filename
Ansgar Burchardt [Fri, 14 Aug 2015 09:37:28 +0000 (11:37 +0200)]
Use HashedFile.input_filename

Use the input_filename that was introduced in
64292a3e28c69cb7a816830c858f8503d6995a98

8 years agoSignedFile: allow multiple signatures
Ansgar Burchardt [Fri, 14 Aug 2015 10:58:48 +0000 (12:58 +0200)]
SignedFile: allow multiple signatures

The InRelease file is currently signed using multiple keys and we want
to be able to verify its signature. So allow multiple signatures as
long as all of them are valid.

For uploads (.changes files) we still require that only a single
signature is present. This is currently enforced by the 'fingerprint',
'primary_fingerprint' and 'signature_id' accessors.

8 years agoSplit out logic to parse Built-Using field.
Ansgar Burchardt [Thu, 13 Aug 2015 11:30:09 +0000 (13:30 +0200)]
Split out logic to parse Built-Using field.

8 years agoUse changes table to include historic data.
Ansgar Burchardt [Fri, 14 Aug 2015 09:10:47 +0000 (11:10 +0200)]
Use changes table to include historic data.

Requested-by: Enrico Zini <enrico@enricozini.org>
8 years agoAdd install_source_to_archive method
Ansgar Burchardt [Thu, 13 Aug 2015 09:43:55 +0000 (11:43 +0200)]
Add install_source_to_archive method

This method install the source into an archive without adding it to
any suite. It is intended to be used to import extra source packages
(i.e. those referenced only by Built-Using).

8 years agoHashedFile: Allow to use a different filename for input
Ansgar Burchardt [Wed, 12 Aug 2015 13:30:03 +0000 (15:30 +0200)]
HashedFile: Allow to use a different filename for input

This allows retrieving files using a temporary name, but to install
them into the archive using their proper name.

8 years agoDo not require all attributes to match
Ansgar Burchardt [Thu, 13 Aug 2015 09:33:53 +0000 (11:33 +0200)]
Do not require all attributes to match

If the same source or binary package is uploaded again, the
fingerprint and changed_by might be different if some other person
signed the new .changes (or if there is no .changes). We still want to
be able to import such packages without error, retaining the
attributes already present.

8 years agoAdd helper functions to decompress files.
Ansgar Burchardt [Tue, 11 Aug 2015 19:38:48 +0000 (21:38 +0200)]
Add helper functions to decompress files.

8 years agoGeneralize parse_file_list to allow handling Release files
Ansgar Burchardt [Tue, 11 Aug 2015 19:36:43 +0000 (21:36 +0200)]
Generalize parse_file_list to allow handling Release files

Release files use different field names for checksum fields and the
set of allowed filenames is larger (slashes are allowed). This patch
allows switching the regexp used to validate filenames and the fields
for checksums to allow using parse_file_list not only for .dsc files,
but also for Release files.

8 years agoAllow checking files given an open file handle.
Ansgar Burchardt [Tue, 11 Aug 2015 19:36:19 +0000 (21:36 +0200)]
Allow checking files given an open file handle.

8 years agoFix typo in error message.
Ansgar Burchardt [Tue, 11 Aug 2015 19:35:44 +0000 (21:35 +0200)]
Fix typo in error message.

8 years agoAdd regexp for safe filenames, including slashes.
Ansgar Burchardt [Tue, 11 Aug 2015 19:35:19 +0000 (21:35 +0200)]
Add regexp for safe filenames, including slashes.

8 years agoAdd missing step for NEW processing on sec-master.
Ansgar Burchardt [Wed, 12 Aug 2015 07:58:45 +0000 (09:58 +0200)]
Add missing step for NEW processing on sec-master.

8 years agoFix handling of mapped components in process-new
Ansgar Burchardt [Wed, 12 Aug 2015 07:58:02 +0000 (09:58 +0200)]
Fix handling of mapped components in process-new

I really would like to get rid of mapped components on security-master...

8 years agoArchiveTransaction: add flush() method.
Ansgar Burchardt [Tue, 11 Aug 2015 09:49:02 +0000 (11:49 +0200)]
ArchiveTransaction: add flush() method.

8 years agosetup/README: do not create system users or groups
Ansgar Burchardt [Tue, 11 Aug 2015 09:32:54 +0000 (11:32 +0200)]
setup/README: do not create system users or groups

8 years agosetup/README: Update PostgreSQL version number.
Ansgar Burchardt [Tue, 11 Aug 2015 09:30:49 +0000 (11:30 +0200)]
setup/README: Update PostgreSQL version number.

8 years agoqueued: remove buildd-alpha-keyring.gpg
Ansgar Burchardt [Tue, 11 Aug 2015 09:29:26 +0000 (11:29 +0200)]
queued: remove buildd-alpha-keyring.gpg