diff --git a/dput-webdav/debian/changelog b/dput-webdav/debian/changelog index 5485c65..bda130e 100644 --- a/dput-webdav/debian/changelog +++ b/dput-webdav/debian/changelog @@ -1,3 +1,9 @@ +dput-webdav (1.3.1) noplat; urgency=medium + + * Handle 'source' architecture (remove it) + + -- Juergen Hermann Fri, 10 Jul 2015 16:24:20 +0200 + dput-webdav (1.3) noplat; urgency=medium * Matrix parameter support for builtin Artifactory repositories diff --git a/dput-webdav/webdav.py b/dput-webdav/webdav.py index 246fe52..fb5c572 100644 --- a/dput-webdav/webdav.py +++ b/dput-webdav/webdav.py @@ -153,6 +153,10 @@ def _resolve_incoming(fqdn, login, incoming, changes=None, cli_params=None, repo pkgdata = dict([(key.lower().replace('-', '_'), val.strip()) for key, val in rfc2822_parser.HeaderParser().parsestr(changes).items() ]) + if 'architecture' in pkgdata: + architecture = set(pkgdata['architecture'].split()) + architecture.discard('source') + pkgdata['architecture'] = ' '.join(sorted(architecture)) # Extend changes metadata pkgdata["loginuser"] = login.split(':')[0]