From: Yaroslav Halchenko Date: Tue, 28 Dec 2010 19:13:21 +0000 (-0500) Subject: git-import-dscs: Use git-import-dsc from the same location as git-import-dscs X-Git-Tag: debian/0.5.14~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2558ea7ba62b0b83fc9c82bdd526f1a17ad9842d;p=tools%2Fgit-buildpackage.git 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 --- 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