[devscripts] 01/06: Make bts work even when there is no ~/.cache
James McCoy
jamessan at debian.org
Sat Jul 8 19:15:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch master
in repository devscripts.
commit 988c42e4f5341faa5510a7ef4fd41e2d71565f67
Author: Joonas Kylmälä <joonas.kylmala at iki.fi>
Date: Tue Jun 27 13:17:09 2017 +0000
Make bts work even when there is no ~/.cache
Signed-off-by: James McCoy <jamessan at debian.org>
---
scripts/bts.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/bts.pl b/scripts/bts.pl
index 00b135a..d54f38f 100755
--- a/scripts/bts.pl
+++ b/scripts/bts.pl
@@ -3690,12 +3690,12 @@ sub browse {
elsif ($caching && have_lwp() && $thing ne '') {
if (! $hascache) {
if (! -d dirname($cachedir)) {
- unless (mkdir(dirname($cachedir))) {
+ unless (make_path(dirname($cachedir))) {
warn "$progname: couldn't mkdir ".dirname($cachedir).": $!\n";
goto LIVE;
}
}
- unless (mkdir($cachedir)) {
+ unless (make_path($cachedir)) {
warn "$progname: couldn't mkdir $cachedir: $!\n";
goto LIVE;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list