projects
/
invirt/packages/invirt-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the source package when the binary package name is not the same as the source...
[invirt/packages/invirt-dev.git]
/
invirtibuilder
diff --git
a/invirtibuilder
b/invirtibuilder
index
8a6b077
..
bf3b499
100755
(executable)
--- a/
invirtibuilder
+++ b/
invirtibuilder
@@
-202,8
+202,10
@@
def uploadBuild(pocket, workdir):
except subprocess.CalledProcessError, e:
if not force:
raise
except subprocess.CalledProcessError, e:
if not force:
raise
- packages = deb822.Changes(open(changes).read())['Binary']
- for package in packages.split():
+ changelog = deb822.Changes(open(changes).read())
+ packages = set(changelog['Binary'].split())
+ packages.add(changelog['Source'])
+ for package in packages:
logAndRun(['reprepro-env', 'remove', apt, package])
logAndRun(upload)
logAndRun(['reprepro-env', 'remove', apt, package])
logAndRun(upload)