[Apt-offline-devel] [SCM] Offline APT Package Manager branch, master, updated. 0.9.7-3-ge043dff
Ritesh Raj Sarraf
rrs at researchut.com
Sat Mar 27 18:12:42 UTC 2010
The following commit has been merged in the master branch:
commit e043dff0e0232288236436ed36479ad8c8aabfff
Author: Ritesh Raj Sarraf <rrs at researchut.com>
Date: Sat Mar 27 23:41:58 2010 +0530
skip the cdrom apt repository
Hi!
Actually I have several problems with apt-offline.
When I start apt-offline get apt-offline.sig
the following errors occured:
debian:/usr# apt-offline get apt-offline.sig
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt
API not stable yet
warnings.warn("apt API not stable yet", FutureWarning)
Fetching APT Data
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/pymodules/python2.5/apt_offline_core/AptOfflineLib .py",
line 578, in run
self.responseQueue.put( self.WorkerFunction( item, thread_name ) )
File "/usr/lib/pymodules/python2.5/apt_offline_core/AptOfflineCor
eLib.py", line 540, in DataFetcher
(url, file, download_size, checksum) = stripper(item)
File "/usr/lib/pymodules/python2.5/apt_offline_core/AptOfflineCor
eLib.py", line 304, in stripper
size = int(string.rstrip(string.lstrip(''.join(item[2]), chars = "'"),
chars="'"))
ValueError: invalid literal for int() with base 10: '5.0.4'
Downloaded data to /tmp/apt-offline-downloads-3467
Can anyone help me?
diff --git a/apt_offline_core/AptOfflineCoreLib.py b/apt_offline_core/AptOfflineCoreLib.py
index 75409c0..6705e6e 100644
--- a/apt_offline_core/AptOfflineCoreLib.py
+++ b/apt_offline_core/AptOfflineCoreLib.py
@@ -535,6 +535,13 @@ def fetcher( args ):
#(key, item) = tuple_item_key
(key, item) = request
+
+ # On many boxes, the cdrom apt repository will be enabled.
+ # For now, let's skip the cdrom repository items.
+ if item.startswith("\'cdrom"):
+ log.verbose("cdrom apt repository not supported. Skipping\n")
+ log.verbose(item)
+ return True
#INFO: Everything
(url, file, download_size, checksum) = stripper(item)
--
Offline APT Package Manager
More information about the Apt-offline-devel
mailing list