Skip to content

Commit

Permalink
Handle 'source' architecture (remove it)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhermann committed Jul 10, 2015
1 parent f463bb4 commit cfd4182
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dput-webdav/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dput-webdav (1.3.1) noplat; urgency=medium

* Handle 'source' architecture (remove it)

-- Juergen Hermann <jh@web.de> Fri, 10 Jul 2015 16:24:20 +0200

dput-webdav (1.3) noplat; urgency=medium

* Matrix parameter support for builtin Artifactory repositories
Expand Down
4 changes: 4 additions & 0 deletions dput-webdav/webdav.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit cfd4182

Please sign in to comment.