summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 09:12:27 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 09:12:27 (EDT)
commit134d7b930e6bf415833f6156958fecb2781bb56d (patch)
tree2d70532b005bd37a8bf508d424a92c3b2604ea5d
parentdb007403dc580c0ad57934771ebcc6c0cf65e1ae (diff)
opkbuild: Drop useless fake privileges
Rely on ob-buildopk to set ownership when packing archives.
-rw-r--r--src/opkbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index e04249d..6d9b490 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -256,7 +256,7 @@ build_source()
src_pkg_data_base="src-${src}.data$(ob_get_system_path \
'package-source' "${src}" "${ver}")"
- if ! "${opt_uid0_cmd}" -- mkdir -p -- "${src_pkg_data_base}"; then
+ if ! mkdir -p -- "${src_pkg_data_base}"; then
ob_error "$(ob_get_msg 'cant_make_src_pkg_dir')"
return 1
fi
@@ -266,8 +266,8 @@ build_source()
../tmp)
;;
../*)
- if ! "${opt_uid0_cmd}" -- cp -Rp -- "${file}" \
- "${src_pkg_data_base}"; then
+ if ! cp -Rp -- "${file}" "${src_pkg_data_base}"
+ then
ob_error "$(ob_get_msg \
'cant_install_src_pkg_file')"
return 1