aboutsummaryrefslogtreecommitdiffhomepage
path: root/git-import-dscs
diff options
context:
space:
mode:
authorYaroslav Halchenko <debian@onerussian.com>2010-12-28 14:13:21 -0500
committerGuido Günther <agx@sigxcpu.org>2010-12-29 20:16:33 +0100
commit2558ea7ba62b0b83fc9c82bdd526f1a17ad9842d (patch)
tree7a5159a824a1816e82e758b9cd188c4cb6344475 /git-import-dscs
parent67bdb1fa86e2f1111b4cc443e6831045c7f78567 (diff)
git-import-dscs: Use git-import-dsc from the same location as git-import-dscs
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>
Diffstat (limited to 'git-import-dscs')
-rwxr-xr-xgit-import-dscs4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-import-dscs b/git-import-dscs
index a5155e49..6571eb09 100755
--- a/git-import-dscs
+++ b/git-import-dscs
@@ -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