library-web r365 - in trunk: . src
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: library-web r365 - in trunk: . src
- Date: Sat, 12 Jan 2008 15:53:21 +0000 (GMT)
Author: fpeters
Date: Sat Jan 12 15:53:21 2008
New Revision: 365
URL: http://svn.gnome.org/viewvc/library-web?rev=365&view=rev
Log:
* src/lgo.py: don't abort when listing a directory that doesn't exist.
Modified:
trunk/ChangeLog
trunk/src/lgo.py
Modified: trunk/src/lgo.py
==============================================================================
--- trunk/src/lgo.py (original)
+++ trunk/src/lgo.py Sat Jan 12 15:53:21 2008
@@ -1267,7 +1267,10 @@
return l
def listdir_local(self, dirname):
- return sorted(os.listdir(os.path.join(self.ftp_gnome_org_local_copy, dirname)))
+ try:
+ return sorted(os.listdir(os.path.join(self.ftp_gnome_org_local_copy, dirname)))
+ except OSError:
+ return []
class Lgo:
@@ -1566,7 +1569,6 @@
min_version += '.1'
logging.info('registering module %s for extra tarballs' % tarball.attrib['id'])
extra_tarball = 'gnome://%s?min=%s' % (tarball.attrib['id'], min_version)
- print extra_tarball
self.config.extra_tarballs.append(extra_tarball)
def extract_modules(self, filename):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]