From 134d7b930e6bf415833f6156958fecb2781bb56d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 16 Jun 2019 09:12:27 -0400 Subject: opkbuild: Drop useless fake privileges Rely on ob-buildopk to set ownership when packing archives. --- (limited to 'src') 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 -- cgit v0.9.1