summaryrefslogtreecommitdiff
path: root/devel/management
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-26 22:30:54 -0600
committerDan McGee <dan@archlinux.org>2010-02-26 22:30:54 -0600
commit0fffd3ad6e19f949124d03f6484143ef2459a543 (patch)
tree225483f364e2c332c96ce1da4d120d621ff4c95d /devel/management
parente95c4563e328ea5e9943f72e72458e454fa7191a (diff)
reporead: build date data is crazyrelease_2010-02-26
Just ignore it if it is completely screwed up. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management')
-rwxr-xr-xdevel/management/commands/reporead.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index bf3e7a0f..07355829 100755
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -144,7 +144,10 @@ def populate_pkg(dbpkg, repopkg, timestamp=None):
try:
dbpkg.build_date = datetime.utcfromtimestamp(int(repopkg.builddate))
except:
- dbpkg.build_date = datetime.strptime(repopkg.builddate, '%a %b %d %H:%M:%S %Y')
+ try:
+ dbpkg.build_date = datetime.strptime(repopkg.builddate, '%a %b %d %H:%M:%S %Y')
+ except:
+ pass
dbpkg.needupdate = False
if timestamp: