summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-03-19 06:10:52 +0100
committerDan McGee <dan@archlinux.org>2013-03-29 21:54:05 +0100
commit25aa164823a88f13761c750057833b6724808675 (patch)
tree2bcf7754ed06765b0cf16fca64872b667b6e025a
parent133d16f91f3d296e188d910f609128d854e65823 (diff)
downloadarchweb-25aa164823a88f13761c750057833b6724808675.tar.gz
archweb-25aa164823a88f13761c750057833b6724808675.tar.xz
Remove old-style build date parsing
This was added in 2010 in commit e95c4563e32 as a short-term fix. The short-term is up. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--devel/management/commands/reporead.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index ccac55f..a0e77dc 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -116,13 +116,9 @@ class RepoPackage(object):
builddate = datetime.utcfromtimestamp(int(v[0]))
self.builddate = builddate.replace(tzinfo=utc)
except ValueError:
- try:
- self.builddate = datetime.strptime(v[0],
- '%a %b %d %H:%M:%S %Y')
- except ValueError:
- logger.warning(
- 'Package %s had unparsable build date %s',
- self.name, v[0])
+ logger.warning(
+ 'Package %s had unparsable build date %s',
+ self.name, v[0])
elif k == 'files':
self.files = tuple(v)
self.has_files = True