summaryrefslogtreecommitdiffstats
path: root/lib/metadata
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 22:21:32 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 22:21:32 (EDT)
commite90bfa447904d9621782213ef87bd8592ec026fa (patch)
tree6ca3673e9a6efa2e1e5a0fae3d481a3570f08807 /lib/metadata
parentdb25745e4910f8faed6c9152c1d19b53dce1e8da (diff)
ob_get_system_path(): Allow package-less platconf
Diffstat (limited to 'lib/metadata')
-rw-r--r--lib/metadata/proteanos.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh
index 4cc982d..f007c22 100644
--- a/lib/metadata/proteanos.sh
+++ b/lib/metadata/proteanos.sh
@@ -139,8 +139,13 @@ _ob_get_system_path()
printf '%s/opkbuild/buildflags/%s' "${DATADIR}" "${1}"
;;
'platconf')
- # source version plat
+ # [source version] plat
+ if [ ${#} -eq 1 ]; then
+ printf '%s/platconf/%s\n' "${DATADIR}" "${1}"
+ return 0
+ fi
[ ${#} -eq 3 ] || _ob_abort
+ # Deprecated:
ob_parse_version -u 'pkgver' -- "${2}"
printf '%s/platconf/%s/%s\n' "${DATADIR}" "${3}" "${1}"
printf '%s/platconf/%s/%s_%s\n' "${DATADIR}" \