[Secure-testing-commits] r54765 - bin

Luciano Bello luciano at moszumanska.debian.org
Tue Aug 15 12:52:49 UTC 2017


Author: luciano
Date: 2017-08-15 12:52:49 +0000 (Tue, 15 Aug 2017)
New Revision: 54765

Modified:
   bin/src2bin_text.py
Log:
bug when a single bin

Modified: bin/src2bin_text.py
===================================================================
--- bin/src2bin_text.py	2017-08-15 12:32:13 UTC (rev 54764)
+++ bin/src2bin_text.py	2017-08-15 12:52:49 UTC (rev 54765)
@@ -27,7 +27,9 @@
     return bins
     
 def getBin(srcPkg):
-    return [ i for i in soappy_query(default_url,'binary_names',source=srcPkg)]
+    bins = soappy_query(default_url,'binary_names',source=srcPkg)
+    if type(bins) == str: bins = [bins]
+    return [ i for i in bins]
 
 def word_wrap(string, width=80, ind1=0, ind2=0, prefix=''):
     """ word wrapping function.




More information about the Secure-testing-commits mailing list