diff options
| author | Karel Klic <kklic@redhat.com> | 2009-10-30 23:47:27 +0100 |
|---|---|---|
| committer | Karel Klic <kklic@redhat.com> | 2009-10-30 23:47:27 +0100 |
| commit | d0962176b885a32b1c5aecd5ac3c0d23447c3d09 (patch) | |
| tree | a876da5cefe940264b97d35e80b9cd3a7ef7e64a /src/Daemon/abrt-debuginfo-install | |
| parent | 0843e750bce39df0e69e4962b3c7f98294d0739b (diff) | |
| parent | 276a9017d63445dd322f9a93ff34e67cbdf97dc9 (diff) | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/Daemon/abrt-debuginfo-install')
| -rwxr-xr-x | src/Daemon/abrt-debuginfo-install | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Daemon/abrt-debuginfo-install b/src/Daemon/abrt-debuginfo-install index 1f947cd..ba9f9a1 100755 --- a/src/Daemon/abrt-debuginfo-install +++ b/src/Daemon/abrt-debuginfo-install @@ -13,9 +13,10 @@ # If CACHEDIR is specified, debuginfos should be installed there. # If not, debuginfos should be installed into TEMPDIR. # -# Currently, we are called with CACHEDIR set to "/", but in the future -# it may be omitted or set to something else. script must be ready -# for those cases too. +# Currently, we are called with CACHEDIR set to "/var/cache/abrt-di", +# but in the future it may be omitted or set to something else. +# Script must be ready for those cases too. Consider, for example, +# corner cases of "" and "/". # # Output goes to GUI as debuginfo install log. The script should be careful # to give useful, but not overly cluttered info to stdout. @@ -70,7 +71,7 @@ test x"$cachedir" = x"" || test -d "$cachedir" || exit 2 # tempdir must not exist test -e "$tempdir" && exit 2 -mkdir "$tempdir" || exit 2 +mkdir -- "$tempdir" || exit 2 cd "$tempdir" || exit 2 $debug && echo "Installing rpms to $tempdir" |
