diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-08-24 19:01:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-08-24 19:01:24 +0100 |
commit | 98bcdbcb21c1275f9f6327317625d83adb201e8a (patch) | |
tree | 1c1a705a4ddadc00ae7f3ab4110f6fdc1f22f601 /conf/intel | |
parent | 0e54b5b648ae68dab5d5c32e7f6d531030af2a37 (diff) |
it seems we didn't actually hook into pkg_postinst() phase, but actually replaced it completely, so pkg_postinst of every package was doomed to fail, with nasty consequences
Diffstat (limited to 'conf/intel')
-rw-r--r-- | conf/intel/portage/bashrc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/conf/intel/portage/bashrc b/conf/intel/portage/bashrc index 10499a6..adfae3e 100644 --- a/conf/intel/portage/bashrc +++ b/conf/intel/portage/bashrc @@ -1,4 +1,4 @@ -pkg_postinst() { +cleancache() { # By default, binary mode portage downloads binary packages from repository and saves # them in /usr/portage/packages. This saves bandwidth in case of reinstalls/downgrades, # but will eat up lots of HDD space, possibly preventing further installs/upgrades. @@ -22,3 +22,11 @@ pkg_postinst() { rm -rf /usr/portage/packages/"${CATEGORY}"/"${P}"*.tbz2 fi } + +main() { + if [ "${EBUILD_PHASE}" == "postinst" ]; then + cleancache + fi +} + +main |