[neovim] 01/01: Use id -u/-g instead of output parsing
James McCoy
jamessan at debian.org
Sun Oct 9 19:31:16 UTC 2016
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch debian/sid
in repository neovim.
commit f1abbb8fc217df5c598059a445aba540ed180f59
Author: James McCoy <jamessan at debian.org>
Date: Sun Oct 9 15:29:57 2016 -0400
Use id -u/-g instead of output parsing
Signed-off-by: James McCoy <jamessan at debian.org>
---
debian/changelog | 2 ++
debian/rules | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 699857b..ab69328 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
neovim (0.1.5-7) UNRELEASED; urgency=medium
* Only run tests for "arch" builds.
+ * Use id -u/-g to get the uid/gid instead or parsing the output of id.
+ Thanks to Jakob Haufe for the patch! (Closes: #840231)
-- James McCoy <jamessan at debian.org> Sat, 08 Oct 2016 21:03:06 -0400
diff --git a/debian/rules b/debian/rules
index bf41792..e31aea4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,8 +19,8 @@ ifneq (,$(findstring ok installed,$(shell dpkg-query -W -f '$${Status}' luajit))
UNITTEST = unittest
endif
-ID = $(shell id | cut -d' ' -f 1 | egrep -o '[0-9]+')
-GID = $(shell id | cut -d' ' -f 2 | egrep -o '[0-9]+')
+ID = $(shell id -u)
+GID = $(shell id -g)
%:
dh $@ --parallel
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/neovim.git
More information about the pkg-vim-maintainers
mailing list