diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2000-08-25 04:39:17 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2000-08-25 04:39:17 +0000 |
commit | c9d5ac50fa90d0cbc714228a8fdb8f0f3dc6463e (patch) | |
tree | 7a7b9d122472c8c4e0c381e88e0bf9a3092b8c6e /sys-apps | |
parent | conditional package creation (diff) | |
download | historical-c9d5ac50fa90d0cbc714228a8fdb8f0f3dc6463e.tar.gz historical-c9d5ac50fa90d0cbc714228a8fdb8f0f3dc6463e.tar.bz2 historical-c9d5ac50fa90d0cbc714228a8fdb8f0f3dc6463e.zip |
more nice fixes
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/portage/files/ebuild | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/sys-apps/portage/files/ebuild b/sys-apps/portage/files/ebuild index 5d4816c1a162..13b57fd6d082 100644 --- a/sys-apps/portage/files/ebuild +++ b/sys-apps/portage/files/ebuild @@ -944,14 +944,6 @@ dyn_package() { local PNAME=${PF}.${PACKAGE} cd ${BUILDDIR}/image echo ">>> Creating ${PNAME} in ${PKGDIR}/All..." - if [ ! -e ${PKGDIR} ] - then - mkdir ${PKGDIR} - fi - if [ ! -e ${PKGDIR}/All ] - then - mkdir ${PKGDIR}/All - fi if [ "$PACKAGE" = "tbz2" ] then tar cvf ${PKGDIR}/All/${PF}.tar * @@ -964,10 +956,6 @@ dyn_package() { echo '!!! Package format '${PACKAGE}' not recognized. Please correct /etc/make.conf' exit 1 fi - if [ ! -e ${PKGDIR}/${CATEGORY} ] - then - mkdir ${PKGDIR}/${CATEGORY} - fi ln -sf ${PKGDIR}/All/${PNAME} ${PKGDIR}/${CATEGORY}/${PNAME} echo ">>> Done." cd ${BUILDDIR} @@ -1160,8 +1148,24 @@ src_menu() { package) dyn_fetch local PNAME=${PF}.${PACKAGE} + if [ ! -d ${PKGDIR} ] + then + install -d ${PKGDIR} + fi + if [ ! -d ${PKGDIR}/All ] + then + install -d ${PKGDIR}/All + fi + if [ ! -d ${PKGDIR}/${CATEGORY} ] + then + install -d ${PKGDIR}/${CATEGORY} + fi if [ -e ${PKGDIR}/All/${PNAME} ] then + if [ ! -d ${PKGDIR}/${CATEGORY}/${PNAME} ] + then + ln -sf ${PKGDIR}/All/${PNAME} ${PKGDIR}/${CATEGORY}/${PNAME} + fi local x local dopackage dopackage="no" |