Skip to content

Commit

Permalink
new PackageBaseID field
Browse files Browse the repository at this point in the history
Signed-off-by: Chris “Kwpolska” Warrick <[email protected]>
  • Loading branch information
Kwpolska committed May 31, 2014
1 parent eaac805 commit dd23e86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkgbuilder/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
:License: BSD (see /LICENSE).
"""

from . import UTC
from .exceptions import PackageError, SanityError
from . import UTC, DS
from .exceptions import SanityError
import datetime

__all__ = ['CATEGORIES', 'Package', 'AURPackage', 'ABSPackage']
Expand Down Expand Up @@ -75,6 +75,7 @@ class AURPackage(Package):
"""An AUR package."""
id = None
packagebase = None
packagebaseid = None
makedepends = []
checkdepends = []
is_abs = False
Expand All @@ -101,6 +102,7 @@ def from_aurdict(cls, aurdict):
'URLPath': 'urlpath',
'Version': 'version',
'PackageBase': 'packagebase',
'PackageBaseID': 'packagebaseid',
'Depends': 'depends',
'MakeDepends': 'makedepends',
'CheckDepends': 'checkdepends',
Expand All @@ -119,10 +121,8 @@ def from_aurdict(cls, aurdict):
setattr(p, bindings[k], v)
except KeyError:
if k not in ignore:
raise PackageError('AURDict has an unknown {0} '
'key'.format(k),
'AURPackage.from_aurdict()',
aurdict=aurdict)
DS.log.warn('AURDict has an unknown {0} key: {1}'.format(
k, aurdict))
# Manual overrides.
p.is_outdated = aurdict['OutOfDate'] > 0
p.repo = CATEGORIES[aurdict['CategoryID']]
Expand Down

0 comments on commit dd23e86

Please sign in to comment.