The following commit has been merged in the master branch:
commit 801266a98bfd0b24e23d36267ad3329969e455a2
Author: Ole Streicher <[email protected]>
Date: Thu Mar 17 14:33:54 2016 +0100
Replace list in GetUpdatablePackages() by a dictionary
diff --git a/webtools/blendstasktools.py b/webtools/blendstasktools.py
index 763dba4..9f75d4a 100644
--- a/webtools/blendstasktools.py
+++ b/webtools/blendstasktools.py
@@ -985,18 +985,20 @@ class Tasks:
for task in self.metapackagekeys:
tdeps = self.tasks[task]
- list = []
+ pkgList = []
for dep in use_dependencystatus:
for tdep in tdeps.dependencies[dep]:
if tdep.outdated != {}:
- if 'last_uploader_simple' in tdep.properties:
- last_uploader =
tdep.properties['last_uploader_simple']
- else:
- last_uploader = None
# versions are ordered lists ---v--- last one is
needed
- list.append(((tdep.pkg, tdep.version[-1]['version'],
tdep.outdated['version'], tdep.properties['maintainer']), last_uploader))
- if list:
- ret[task] = list
+ pkgList.append({
+ 'name': tdep.pkg,
+ 'debian_version': tdep.version[-1]['version'],
+ 'upstream_version': tdep.outdated['version'],
+ 'maintainer': tdep.properties['maintainer'],
+ 'uploader':
tdep.properties.get('last_uploader_simple')
+ })
+ if pkgList:
+ ret[task] = pkgList
return ret
def GetAllDependentPackagesOfBlend(self, dependencystatus=[]):
diff --git a/webtools/new_upstream.py b/webtools/new_upstream.py
index 4b89b9a..b56e3b2 100755
--- a/webtools/new_upstream.py
+++ b/webtools/new_upstream.py
@@ -20,12 +20,15 @@ tasks.GetAllDependencies(source=1)
packages = tasks.GetUpdatablePackages(dependencystatus=['official_high',
'official_low', 'non-free', 'experimental'])
for task in packages.keys():
- print("Updatable packages in Task %s" % task)
+ print("Updatable packages in Task {0}".format(task))
for pkg_v_o in packages[task]:
- printstring = "\t%s:\n\t\tHighest version in Debian is
%s\n\t\tUpstream has %s\n\t\tMaintainer is %s" % (pkg_v_o[0])
- if pkg_v_o[1]:
- printstring = printstring + "\n\t\tLast uploader was " + pkg_v_o[1]
- print(printstring)
+ printstring = '\t{name}:\n'
+ printstring += '\t\tHighest version in Debian is {debian_version}\n'
+ printstring += '\t\tUpstream has {upstream_version}\n'
+ printstring += '\t\tMaintainer is {maintainer}'
+ if 'uloader' in pkg_v_o:
+ printstring += '\n\t\tLast uploader was {uploader}'
+ print(printstring.format(**pkg_v_o))
# Perhaps we should also send a mail to [email protected]
# keyword %(pkg) %(list) = bts bts-control upload-source katie-other
summary default cvs ddtp derivatives contact
--
Static and dynamic websites for Debian Pure Blends
_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit