summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-02 21:55:25 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-02 21:55:25 (EDT)
commit97c3f7862d79a7dd35676f1a34dfa58dfec75454 (patch)
tree4b78be96ab568f67b72abee85fbb881075ff8389
parent865d2e2b428668a8df165504f8ba51fe5a9bab7f (diff)
Fix package metadata cache file loading.
-rw-r--r--lib/package.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/package.sh b/lib/package.sh
index aa0d029..1cbef16 100644
--- a/lib/package.sh
+++ b/lib/package.sh
@@ -91,7 +91,11 @@ ob_parse_package_metadata()
# Load a previously saved cache file, if any.
if [ -n "${_obppm_cache_file}" -a -r "${_obppm_cache_file}" ]; then
- . "${_obppm_cache_file}"
+ if [ "${_obppm_cache_file#*/}" != "${_obppm_cache_file}" ]; then
+ . "${_obppm_cache_file}"
+ else
+ . "./${_obppm_cache_file}"
+ fi
_ob_return 0
return ${?}
fi