diff options
author | Dan McGee <dan@archlinux.org> | 2013-03-19 06:10:52 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-03-29 21:54:05 +0100 |
commit | 25aa164823a88f13761c750057833b6724808675 (patch) | |
tree | 2bcf7754ed06765b0cf16fca64872b667b6e025a /devel | |
parent | 133d16f91f3d296e188d910f609128d854e65823 (diff) | |
download | archweb-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>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/management/commands/reporead.py | 10 |
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 |