Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245943 - app-portage/eix: Simple way to exclude overlays included in remote tarball
Summary: app-portage/eix: Simple way to exclude overlays included in remote tarball
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-07 11:20 UTC by Allen Brooker (AllenJB)
Modified: 2008-11-07 17:08 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 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