[vim] 02/02: helpztags: Don't error if a directory doesn't exist
James McCoy
jamessan at debian.org
Sat Apr 2 18:45:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch debian/sid
in repository vim.
commit c2d0439985f8964d2f3f1bd84e309a54b34ece64
Author: James McCoy <jamessan at debian.org>
Date: Sat Apr 2 14:44:36 2016 -0400
helpztags: Don't error if a directory doesn't exist
Signed-off-by: James McCoy <jamessan at debian.org>
---
debian/changelog | 5 +++--
debian/helpztags | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 9f88647..608e9bb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,8 +5,9 @@ vim (2:7.4.1689-2) UNRELEASED; urgency=medium
* Lintian:
+ Provide more details in vim-doc's long description. Thanks to Elimar
Riesebieter for the patch. (Closes: #819733)
- * helpztags: Don't try to read a file if it can't be opened. (Closes:
- #819764)
+ * helpztags:
+ + Don't try to read a file if it can't be opened. (Closes: #819764)
+ + Don't error if the specified directory doesn't exist. (Closes: #819809)
* Generate vim-policy in a consistent locale.
-- James McCoy <jamessan at debian.org> Fri, 01 Apr 2016 20:43:40 -0400
diff --git a/debian/helpztags b/debian/helpztags
index 83291cc..d5c2837 100644
--- a/debian/helpztags
+++ b/debian/helpztags
@@ -52,7 +52,7 @@ my $startdir=getcwd();
my %tags;
foreach my $dir (@ARGV) {
- chdir $dir || die "Error: $dir: no such directory\n";
+ chdir $dir or next;
print "Processing ".$dir."\n";
foreach my $file (<*.{gz,txt,??x}>) {
next unless $file =~ m/^[\w.-]+\.(?:txt|([[:alpha:]]{2})x)(?:.gz)?$/;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/vim.git
More information about the pkg-vim-maintainers
mailing list