diff options
author | Petr Mladek <pmladek@suse.cz> | 2009-09-25 14:41:06 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2009-09-25 14:41:06 +0200 |
commit | c0abf8565720e8635147bf31b4fc3fe9de18416c (patch) | |
tree | ce0d1211e0539e1951a23259c1fdadea944fbf03 | |
parent | eff27381d199db58753242dbccba268a60b4a130 (diff) |
unopkg-regenerate-cache should not print error on non-existing cache
* bin/unopkg-regenerate-cache: do not print error when the cache does not
exist; it might be called before the firts extension is installed
-rwxr-xr-x | bin/unopkg-regenerate-cache | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/unopkg-regenerate-cache b/bin/unopkg-regenerate-cache index 27f5ff3ba..f5db7f66b 100755 --- a/bin/unopkg-regenerate-cache +++ b/bin/unopkg-regenerate-cache @@ -23,10 +23,9 @@ shift; OOO_BROKEN_EXTENSIONS="$*" OOO_UNO_CACHE="$OOO_HOME/share/uno_packages/cache" -if test ! -d "$OOO_UNO_CACHE" ; then - echo "Error: Can't find $OOO_UNO_CACHE" - exit 1; -fi + +# nothing to do if the cache does not exist (fresh installation or so) +test -d "$OOO_UNO_CACHE" || exit 0; # check for broken extensions found= |