git-import-dscs: Use git-import-dsc from the same location as git-import-dscs
authorYaroslav Halchenko <debian@onerussian.com>
Tue, 28 Dec 2010 19:13:21 +0000 (14:13 -0500)
committerGuido Günther <agx@sigxcpu.org>
Wed, 29 Dec 2010 19:16:33 +0000 (20:16 +0100)
With hardcoded path it is impossible to use git-import-dscs directly
from the repository while developing both tools

Signed-off-by: Guido Günther <agx@sigxcpu.org>
git-import-dscs

index a5155e4..6571eb0 100755 (executable)
@@ -36,7 +36,9 @@ class DscCompareVersions(DpkgCompareVersions):
 
 
 class GitImportDsc(gbpc.Command):
-    cmd='/usr/bin/git-import-dsc'
+    # 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]
     def __init__(self, args):
         if not os.access(self.cmd, os.X_OK):
             raise GbpError, "%s not found - can't import packages" % self.cmd