diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-07-09 15:17:24 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-07-24 20:06:40 +0200 |
commit | dbfc6276c4aa50b79f1cf27cfc24badc0b18da8f (patch) | |
tree | 60930339ad301b41ac793237ff347ea95b45b267 /gbp/deb/dscfile.py | |
parent | e374ee5a2381ba30056c1fa33bdb515d99ec704e (diff) |
Change UpstreamSource to have PkgPolicy
The UpstreamSource class now gets a PkgPolicy in it's initialization.
Also, introduces new DebiaUpstreamSource class which is taken in use in
the scripts.
The PkgPolicy is not yet used for anything in UpstreamSource.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/deb/dscfile.py')
-rw-r--r-- | gbp/deb/dscfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/deb/dscfile.py b/gbp/deb/dscfile.py index e2492dc..0671328 100644 --- a/gbp/deb/dscfile.py +++ b/gbp/deb/dscfile.py @@ -20,12 +20,12 @@ import os import re from gbp.errors import GbpError -from gbp.pkg import UpstreamSource +from gbp.deb.upstreamsource import DebianUpstreamSource from gbp.deb.policy import DebianPkgPolicy class DscFile(object): """Keeps all needed data read from a dscfile""" - compressions = r"(%s)" % '|'.join(UpstreamSource.known_compressions()) + compressions = r"(%s)" % '|'.join(DebianUpstreamSource.known_compressions()) pkg_re = re.compile(r'Source:\s+(?P<pkg>.+)\s*') version_re = re.compile(r'Version:\s((?P<epoch>\d+)\:)?' '(?P<version>[%s]+)\s*$' |