diff options
author | P. 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) |
commit | 97c3f7862d79a7dd35676f1a34dfa58dfec75454 (patch) | |
tree | 4b78be96ab568f67b72abee85fbb881075ff8389 /lib | |
parent | 865d2e2b428668a8df165504f8ba51fe5a9bab7f (diff) |
Fix package metadata cache file loading.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/package.sh | 6 |
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 |