git-import-dscs: really use git-import-dsc from the same location as git-import-dscs
authorGuido Günther <agx@sigxcpu.org>
Wed, 9 Feb 2011 21:49:35 +0000 (22:49 +0100)
committerGuido Günther <agx@sigxcpu.org>
Wed, 9 Feb 2011 21:49:35 +0000 (22:49 +0100)
git-import-dscs

index 87a020e..41dc223 100755 (executable)
@@ -38,7 +38,7 @@ class DscCompareVersions(DpkgCompareVersions):
 class GitImportDsc(gbpc.Command):
     # git-import-dsc should reside in the same directory as git-import-dscs
     # so we can reuse the full path from the later
-    cmd = __file__[:-1]
+    cmd = os.path.abspath(__file__[:-1])
     def __init__(self, args):
         if not os.access(self.cmd, os.X_OK):
             raise GbpError, "%s not found - can't import packages" % self.cmd