Browse Source

gentoo-upgrade.conf added

master
Kolan Sh 9 years ago
parent
commit
9c2e59f13a
3 changed files with 10 additions and 2 deletions
  1. +2
    -0
      Makefile
  2. +2
    -0
      etc/gentoo-upgrade.conf
  3. +6
    -2
      sbin/gentoo-upgrade.sh

+ 2
- 0
Makefile View File

@ -4,5 +4,7 @@ PREFIX = /usr
all:
install:
install -d ${DESTDIR}/etc
install --mode=644 etc/* ${DESTDIR}/etc
install -d ${DESTDIR}/usr/sbin
install --mode=755 sbin/*.sh ${DESTDIR}/usr/sbin

+ 2
- 0
etc/gentoo-upgrade.conf View File

@ -0,0 +1,2 @@
EGENCACHE=FALSE
ECLEAN_DISTFILES=FALSE

+ 6
- 2
sbin/gentoo-upgrade.sh View File

@ -355,8 +355,12 @@ if [ 14 -eq $STAGE ]; then
if [ `which eclean 2>/dev/null` ]; then
eclean packages
[ 0 -ne $? ] && echo "Stage $STAGE: eclean packages failed ;-( =======" && exit $STAGE
eclean distfiles
[ 0 -ne $? ] && echo "Stage $STAGE: eclean distfiles failed ;-( =======" && exit $STAGE
in_list "$ECLEAN_DISTFILES" ${TRUE_LIST[@]}
if [ 0 -eq $? ]; then
eclean distfiles
[ 0 -ne $? ] && echo "Stage $STAGE: eclean distfiles failed ;-( =======" && exit $STAGE
fi
fi
rm -rf /var/tmp/portage/*
[ 0 -ne $? ] && echo "Stage $STAGE: rm -rf /var/tmp/portage/* failed ;-( =======" && exit $STAGE


Loading…
Cancel
Save