Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 245943

Summary: app-portage/eix: Simple way to exclude overlays included in remote tarball
Product: Gentoo Linux Reporter: Allen Brooker (AllenJB) <gentoo-bugs>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Allen Brooker (AllenJB) 2008-11-07 11:20:55 UTC
It would be useful for eix to have a simple way to exclude overlays that are included in the remote tarball (fetched with update-eix-remote).

The simplest method I've found so far involves fetching the tarball, manually extracting it and deleting the unwanted overlay, then recompressing it:
echo "eix: Fetching cached overlays"
EIX_TARBALL="/tmp/eix-temp.tbz2"
EIX_TEMP="/tmp/eix-temp"
rm -f ${EIX_TARBALL}
rm -rf ${EIX_TEMP}
mkdir ${EIX_TEMP}
update-eix-remote -q fetch ${EIX_TARBALL}
echo "eix: Removing sabayon overlay"
tar jxf ${EIX_TARBALL} -C ${EIX_TEMP}
rm "${EIX_TEMP}/_usr_portage_local_layman_sabayon.eix"
rm ${EIX_TARBALL}
cd ${EIX_TEMP}
tar jcf ${EIX_TARBALL} *
echo "eix: Adding remaining cached overlays"
update-eix-remote -q add ${EIX_TARBALL}

I would suggest an optional command parameter to "eix-update-remote update", for example:
eix-update-remote update --exclude=sabayon
Comment 1 Martin Väth 2008-11-07 17:08:09 UTC
EXCLUDE_OVERLAY='(layman/sabayon)' update-eix-remote update