[Cdd-commits] r1057 - cdd/trunk/webtools
CDD Subversion Commit
noreply at alioth.debian.org
Fri Sep 5 12:48:44 UTC 2008
Author: tille
Date: Fri Sep 5 12:48:44 2008
New Revision: 1057
Modified:
cdd/trunk/webtools/distasktools.py
Log:
Print WNPP link only if numbers are specified in the WNPP field.
Modified: cdd/trunk/webtools/distasktools.py
==============================================================================
--- cdd/trunk/webtools/distasktools.py (original)
+++ cdd/trunk/webtools/distasktools.py Fri Sep 5 12:48:44 2008
@@ -577,7 +577,10 @@
if dep.pkg in self.available.packages[component].keys():
print "Hint: WNPP for package %s just closed - extra information can be removed from task file." % (dep.pkg)
else:
- dep.wnpp = stanza['wnpp']
+ wnpp = stanza['wnpp'].strip()
+ # if there is really a number given
+ if re.compile("^\d+$").search(wnpp):
+ dep.wnpp = wnpp
else:
print >>stderr, "Dep not initiated before WNPP %s -> something is wrong." \
% stanza['wnpp']
More information about the Cdd-commits
mailing list