[Checkins] SVN: zopyx.trashfinder/trunk/ bugfix in parsing metadata

Andreas Jung andreas at andreas-jung.com
Sun Feb 6 14:58:14 EST 2011


Log message for revision 120165:
  bugfix in parsing metadata
  

Changed:
  U   zopyx.trashfinder/trunk/docs/HISTORY.txt
  U   zopyx.trashfinder/trunk/zopyx/trashfinder/cli.py

-=-
Modified: zopyx.trashfinder/trunk/docs/HISTORY.txt
===================================================================
--- zopyx.trashfinder/trunk/docs/HISTORY.txt	2011-02-06 19:56:59 UTC (rev 120164)
+++ zopyx.trashfinder/trunk/docs/HISTORY.txt	2011-02-06 19:58:14 UTC (rev 120165)
@@ -1,6 +1,10 @@
 Changelog
 =========
 
+0.1.4 (2011/02/06)
+-------------------
+- bug fix in parsing metadata
+
 0.1.3 (2009/12/29)
 -------------------
 

Modified: zopyx.trashfinder/trunk/zopyx/trashfinder/cli.py
===================================================================
--- zopyx.trashfinder/trunk/zopyx/trashfinder/cli.py	2011-02-06 19:56:59 UTC (rev 120164)
+++ zopyx.trashfinder/trunk/zopyx/trashfinder/cli.py	2011-02-06 19:58:14 UTC (rev 120165)
@@ -48,9 +48,9 @@
                 if download_url == 'UNKNOWN':
                     print 'CRAP: %s==%s - no release files, no valid download_url' % (package, version)
 
-            if len(metadata['description']) < 40:
+            if len(metadata['description'] or '') < 40:
                     print 'CRAP: %s==%s - description < 40 chars' % (package, version)
-            if len(metadata['summary']) < 10:
+            if len(metadata['summary'] or '') < 10:
                     print 'CRAP: %s==%s - summary < 10 chars' % (package, version)
             if not metadata['author_email'] and not metadata['maintainer_email']:
                     print 'CRAP: %s==%s - no author and no maintainer email given' % (package, version)



More information about the checkins mailing list