summaryrefslogtreecommitdiff
path: root/conf/intel
diff options
context:
space:
mode:
Diffstat (limited to 'conf/intel')
-rw-r--r--conf/intel/portage/bashrc10
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