[Blends-commit] r2806 - /blends/trunk/webtools/blendstasktools.py
tille at users.alioth.debian.org
tille at users.alioth.debian.org
Mon May 2 16:19:04 UTC 2011
Author: tille
Date: Mon May 2 16:19:03 2011
New Revision: 2806
URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=2806
Log:
Handle prospective packages with Vcs information but nothing else properly
Modified:
blends/trunk/webtools/blendstasktools.py
Modified: blends/trunk/webtools/blendstasktools.py
URL: http://svn.debian.org/wsvn/blends/blends/trunk/webtools/blendstasktools.py?rev=2806&op=diff
==============================================================================
--- blends/trunk/webtools/blendstasktools.py (original)
+++ blends/trunk/webtools/blendstasktools.py Mon May 2 16:19:03 2011
@@ -1522,7 +1522,11 @@
# Verify whether packages which are neither in pool, new nor virtual have sufficient information in task file
for status in self.dependencies.keys():
for dep in self.dependencies[status]:
- if dep.pkg not in pkgs_in_pool and dep.pkg not in pkgs_in_new and dep.pkg not in pkgs_virtual and dep.pkgstatus == 'unknown':
+ if dep.pkg not in pkgs_in_pool and dep.pkg not in pkgs_in_new and dep.pkg not in pkgs_virtual and (dep.pkgstatus == 'unknown' or dep.pkgstatus == 'pkgvcs'):
+ # If only Vcs fields are given than we currently do not know enough to print package information
+ if dep.pkgstatus == 'pkgvcs':
+ logger.error("Package %s in task %s has only Vcs information - please provide more information" % (dep.pkg, dep.taskname))
+ dep.pkgstatus == 'unknown'
if dep.properties['homepage'] == HOMEPAGENONE:
if dep.desc['en'] == {}:
logger.error("Package %s in task %s neither in pool nor new and is lacking homepage and description - ignored" % (dep.pkg, dep.taskname))
More information about the Blends-commit
mailing list