diff options
author | Brian Harring <ferringb@gmail.com> | 2012-09-13 23:00:10 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-09-14 00:13:31 -0700 |
commit | 7571867c71392b5c61b040884017c00e9d1ecb3f (patch) | |
tree | 92b8b615b5d01c34b69d378033dc001723fcd7d2 /bin/misc-functions.sh | |
parent | 9b19ac5696c487dab58d7c10990fe07fd7f1f731 (diff) | |
download | portage-7571867c71392b5c61b040884017c00e9d1ecb3f.tar.gz portage-7571867c71392b5c61b040884017c00e9d1ecb3f.tar.bz2 portage-7571867c71392b5c61b040884017c00e9d1ecb3f.zip |
Convert funcs of phase*.sh to __ prefixed namespace.
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-x | bin/misc-functions.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 5bc946fc1..fe38e23b8 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -1082,7 +1082,7 @@ preinst_selinux_labels() { return 1 fi if has selinux ${FEATURES}; then - # SELinux file labeling (needs to always be last in dyn_preinst) + # SELinux file labeling (needs to always be last in __dyn_preinst) # only attempt to label if setfiles is executable # and 'context' is available on selinuxfs. if [ -f /selinux/context -o -f /sys/fs/selinux/context ] && \ @@ -1105,7 +1105,7 @@ preinst_selinux_labels() { fi } -dyn_package() { +__dyn_package() { local PROOT [[ " ${FEATURES} " == *" force-prefix "* ]] || \ @@ -1167,7 +1167,7 @@ dyn_package() { die "Failed to create $PORTAGE_BUILDDIR/.packaged" } -dyn_spec() { +__dyn_spec() { local sources_dir=/usr/src/rpm/SOURCES mkdir -p "${sources_dir}" declare -a tar_args=("${EBUILD}") @@ -1205,7 +1205,7 @@ __END1__ } -dyn_rpm() { +__dyn_rpm() { [[ " ${FEATURES} " == *" force-prefix "* ]] || \ case "$EAPI" in 0|1|2) local EPREFIX= ;; esac @@ -1215,7 +1215,7 @@ dyn_rpm() { local dest_dir=${EPREFIX}/usr/src/rpm/RPMS/${machine_name} addwrite ${EPREFIX}/usr/src/rpm addwrite "${RPMDIR}" - dyn_spec + __dyn_spec rpmbuild -bb --clean --rmsource "${PF}.spec" || die "Failed to integrate rpm spec file" install -D "${dest_dir}/${PN}-${PV}-${PR}.${machine_name}.rpm" \ "${RPMDIR}/${CATEGORY}/${PN}-${PV}-${PR}.rpm" || \ |