[Git][java-team/javatools][master] jh_exec: Fix missing check of whether a path exists

Niels Thykier gitlab at salsa.debian.org
Tue Sep 18 19:00:39 BST 2018


Niels Thykier pushed to branch master at Debian Java Maintainers / javatools


Commits:
faded9b2 by Niels Thykier at 2018-09-18T17:57:31Z
jh_exec: Fix missing check of whether a path exists

Signed-off-by: Niels Thykier <niels at thykier.net>

- - - - -


2 changed files:

- debian/changelog
- jh_exec


Changes:

=====================================
debian/changelog
=====================================
@@ -4,6 +4,7 @@ javatools (0.66) UNRELEASED; urgency=medium
   * jh_installlibs: Re-add glob-expansion in jlibs files, which were
     unintentionally lost in the "shell -> perl" rewrite of
     jh_installibs.
+  * jh_exec: Fix missing guard to skip directories that do not exist.
 
  -- Niels Thykier <niels at thykier.net>  Tue, 18 Sep 2018 17:24:59 +0000
 


=====================================
jh_exec
=====================================
@@ -41,6 +41,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
    my $tmpdir = tmpdir($package);
    for my $path_dir (PATH_DIRS) {
       my $dir = "${tmpdir}/${path_dir}";
+      next if not -d $dir;
       opendir(my $dirfd, $dir) or error("opendir($dir) failed: $!");
       for my $file (readdir($dirfd)) {
          next if $file eq '.' or $file eq '..';



View it on GitLab: https://salsa.debian.org/java-team/javatools/commit/faded9b2f3c211f5611748a0c847466dbc14738a

-- 
View it on GitLab: https://salsa.debian.org/java-team/javatools/commit/faded9b2f3c211f5611748a0c847466dbc14738a
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20180918/2d83ee4b/attachment.html>


More information about the pkg-java-commits mailing list