[library-web] misc: don't abort on modules not using dotted version numbers
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] misc: don't abort on modules not using dotted version numbers
- Date: Mon, 9 Jan 2017 09:30:58 +0000 (UTC)
commit be8171576b92d2543ffd996101cc91ab75f977e1
Author: Frédéric Péters <fpeters 0d be>
Date: Mon Jan 9 10:29:41 2017 +0100
misc: don't abort on modules not using dotted version numbers
src/lgo.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/lgo.py b/src/lgo.py
index 9387b8f..858350c 100755
--- a/src/lgo.py
+++ b/src/lgo.py
@@ -632,7 +632,11 @@ class Lgo(App):
tarball_name = os.path.splitext(os.path.splitext(os.path.basename(filename))[0])[0]
if '__' in tarball_name: # taken from local cache
tarball_name = tarball_name.split('__')[-1]
- tarname_without_minor = re.match(r'(.*)\.\d+', tarball_name).groups()[0]
+ try:
+ tarname_without_minor = re.match(r'(.*)\.\d+', tarball_name).groups()[0]
+ except AttributeError:
+ logging.debug('failed to get tarball without minor name for %s' % tarball_name)
+ return
# Step 0: remove old occurences of module extracts
for basedir, dirnames, filenames in os.walk(os.path.join(app.config.private_dir, 'extracts')):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]