diff options
author | Dan McGee <dan@archlinux.org> | 2010-02-26 22:30:54 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-02-26 22:30:54 -0600 |
commit | 0fffd3ad6e19f949124d03f6484143ef2459a543 (patch) | |
tree | 225483f364e2c332c96ce1da4d120d621ff4c95d /devel/management/commands | |
parent | e95c4563e328ea5e9943f72e72458e454fa7191a (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/commands')
-rwxr-xr-x | devel/management/commands/reporead.py | 5 |
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: |