diff options
author | P. J. McDermott <pjm@nac.net> | 2012-09-30 02:22:20 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-09-30 02:22:20 (EDT) |
commit | 7a5254b8e4605293f1e1838e0044bf01cd7641c6 (patch) | |
tree | 5d1928df9122be34d686cecb53de14c491f7189c /lib | |
parent | 603537ee5a72e1858c530788cb409e4b17d23c90 (diff) |
Make ob_parse_package_metadata() read cache files.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/package.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/package.sh b/lib/package.sh index e3aba3c..d763f9a 100644 --- a/lib/package.sh +++ b/lib/package.sh @@ -87,6 +87,13 @@ ob_parse_package_metadata() return ${?} fi + # Load a previously saved cache file, if any. + if [ -n "${_obppm_cache_file}" -a -r "${_obppm_cache_file}" ]; then + . "${_obppm_cache_file}" + _ob_return 0 + return ${?} + fi + _ob_package_do 'parse_package_metadata' if [ -n "${_obppm_cache_file}" ]; then |