aboutsummaryrefslogtreecommitdiff
path: root/gbp/scripts/import_dsc.py
diff options
context:
space:
mode:
authorGuido G√ľnther <agx@sigxcpu.org>2013-04-29 20:55:40 +0200
committerGuido G√ľnther <agx@sigxcpu.org>2013-04-29 21:14:18 +0200
commit43e60bb76e80c6ca7be1ee1da582fe78c5465349 (patch)
tree415cea02d452df14d26c25344601c7be3b03fe9b /gbp/scripts/import_dsc.py
parent45c2346f6a52aec196dd89b8d09d8b06d05b8867 (diff)
Make parse_dsc a classmethod of DscFile
so we have the object creation close to the object itself.
Diffstat (limited to 'gbp/scripts/import_dsc.py')
-rw-r--r--gbp/scripts/import_dsc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/import_dsc.py b/gbp/scripts/import_dsc.py
index 7ed0e36..11c47e8 100644
--- a/gbp/scripts/import_dsc.py
+++ b/gbp/scripts/import_dsc.py
@@ -27,7 +27,7 @@ import pipes
import time
import gbp.command_wrappers as gbpc
from gbp.pkg import UpstreamSource
-from gbp.deb import parse_dsc
+from gbp.deb.dscfile import DscFile
from gbp.deb.git import (DebianGitRepository, GitRepositoryError)
from gbp.deb.changelog import ChangeLog
from gbp.git import rfc822_date_to_git
@@ -263,7 +263,7 @@ def main(argv):
else:
dsc = pkg
- src = parse_dsc(dsc)
+ src = DscFile.parse(dsc)
if src.pkgformat not in [ '1.0', '3.0' ]:
raise GbpError("Importing %s source format not yet supported." % src.pkgformat)
if options.verbose: