summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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