From 97c3f7862d79a7dd35676f1a34dfa58dfec75454 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Oct 2012 21:55:25 -0400 Subject: Fix package metadata cache file loading. --- (limited to 'lib') 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 -- cgit v0.9.1