r362 - /debtorrent/trunk/split_cache_for_all.py
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Sun Jan 27 21:29:50 UTC 2008
Author: camrdale-guest
Date: Sun Jan 27 21:29:50 2008
New Revision: 362
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=362
Log:
Work around bug #462859 in python-debian.
Modified:
debtorrent/trunk/split_cache_for_all.py
Modified: debtorrent/trunk/split_cache_for_all.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/split_cache_for_all.py?rev=362&op=diff
==============================================================================
--- debtorrent/trunk/split_cache_for_all.py (original)
+++ debtorrent/trunk/split_cache_for_all.py Sun Jan 27 21:29:50 2008
@@ -34,8 +34,16 @@
for file in files:
if file.endswith('.deb'):
filename = os.path.join(root, file)
- deb = debfile.DebFile(filename)
- if deb.debcontrol().get('Architecture', '') == 'all':
+ all = False
+ try:
+ deb = debfile.DebFile(filename)
+ if deb.debcontrol().get('Architecture', '') == 'all':
+ all = True
+ except:
+ if file.endswith('_all.deb'):
+ all = True
+
+ if all:
newfile = subdir_all + filename[len(subdir):]
if os.path.exists(newfile):
print " not moving (destination exists)", os.path.basename(filename)
More information about the Debtorrent-commits
mailing list