summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-02-02 09:10:13 +0100
committerGuido Günther <agx@sigxcpu.org>2017-02-02 09:10:13 +0100
commitd904b61686e1aa542d437f6da35fc795d92dd7c4 (patch)
tree36343bc8cff7f8c69ea8ef5066c7c550c4473cdf
parent32779fc580e2855df460aa948ac280d85d7c8e06 (diff)
Use a symlink to supercomand instead of pkgresources.load_entry_point
This sppeds up startup a lot and thus makes bash completion much more responsive: $ gbp buildpackge --help real 0m0,573s user 0m0,532s sys 0m0,036s $ time python /usr/lib/python2.7/dist-packages/gbp/scripts/supercommand.py buildpackage --help real 0m0,051s user 0m0,040s sys 0m0,012s Closes: #853283
-rw-r--r--debian/links2
-rwxr-xr-xdebian/rules1
2 files changed, 2 insertions, 1 deletions
diff --git a/debian/links b/debian/links
index 21048c8b..24215aa8 100644
--- a/debian/links
+++ b/debian/links
@@ -1,3 +1,3 @@
/usr/share/doc/git-buildpackage/manual-html/gbp.html /usr/share/doc/git-buildpackage/manual-html/index.html
/usr/share/man/man1/gbp.1.gz /usr/share/man/man1/git-buildpackage.1.gz
-
+/usr/lib/python2.7/dist-packages/gbp/scripts/supercommand.py /usr/bin/gbp
diff --git a/debian/rules b/debian/rules
index 00702d4d..1be5dbcc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -34,6 +34,7 @@ override_dh_auto_install:
mkdir -p debian/git-buildpackage/$(ZSH_COMPDIR)
install -m644 debian/git-buildpackage.zsh-completion \
debian/git-buildpackage/$(ZSH_COMPDIR)/_gbp
+ chmod a+x debian/tmp/usr/lib/python2.?/dist-packages/gbp/scripts/supercommand.py
override_dh_auto_clean:
dh_auto_clean