summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2009-09-25 14:41:06 +0200
committerPetr Mladek <pmladek@suse.cz>2009-09-25 14:41:06 +0200
commitc0abf8565720e8635147bf31b4fc3fe9de18416c (patch)
treece0d1211e0539e1951a23259c1fdadea944fbf03
parenteff27381d199db58753242dbccba268a60b4a130 (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-xbin/unopkg-regenerate-cache7
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=