Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14077 - suggested patch for gentoolkit - emerge-webrsync
Summary: suggested patch for gentoolkit - emerge-webrsync
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-16 23:28 UTC by scott.claridge
Modified: 2003-01-18 10:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description scott.claridge 2003-01-16 23:28:58 UTC
I always fall into the trap of allowing my portage tree to contain outdated
ebuilds, and given that "emerge rsync" now defaults to clean I thought I would
propose the same functionality in emerge-webrsync.

(I've used the AUTOCLEAN var in /etc/make.globals as the determimator for rsync
delete, and -delete-after option as per /usr/lib/portage/bin/emerge.)

suggested patch:

--- emerge-webrsync     2003-01-17 18:12:41.000000000 +1300
+++ emerge-webrsync.orig     2003-01-04 09:51:49.000000000 +1300
@@ -14,7 +14,6 @@
 fi
 
 GENTOO_MIRRORS="`${PYTHON} -c 'import portage; print
portage.settings["GENTOO_MIRRORS"];'`"
-AUTOCLEAN="`${PYTHON} -c 'import portage; print portage.settings["AUTOCLEAN"];'`"
 syncpath="/var/tmp/emerge-webrsync"
 
 if [ ! -d $syncpath ] ; then
@@ -42,11 +41,7 @@
        rm -f $file
        # Make sure user and group file ownership is root
        chown -R root:root portage
-       if [ $AUTOCLEAN == "yes" ] ; then
-               rsync -av --delete --delete-after . /usr
-       else
-               rsync -av . /usr
-       fi
+       rsync -av . /usr
        rm -rf portage
 }
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-01-17 03:21:17 UTC
i'll fix this
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-01-18 10:15:18 UTC
fixed with gentoolkit-0.1.17-r10
sorry for unstable, but we are in frozen for 1.4