From 2558ea7ba62b0b83fc9c82bdd526f1a17ad9842d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 28 Dec 2010 14:13:21 -0500 Subject: [PATCH] git-import-dscs: Use git-import-dsc from the same location as git-import-dscs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- git-import-dscs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-import-dscs b/git-import-dscs index a5155e4..6571eb0 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 -- 2.7.4