diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 19:35:30 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 19:35:30 +0000 |
commit | 3af2280b756c0e2b9726dc97759ea114b1850cce (patch) | |
tree | 9935d80097db4833fc1fd68c18f0e05d977d6eb0 /conf/intel/portage | |
parent | 68ff851b4343f221487d48cb645bccfff345b4c2 (diff) |
sisyphus does this for a while now, no longer needed
Diffstat (limited to 'conf/intel/portage')
-rw-r--r-- | conf/intel/portage/bashrc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/conf/intel/portage/bashrc b/conf/intel/portage/bashrc deleted file mode 100644 index f5f8109..0000000 --- a/conf/intel/portage/bashrc +++ /dev/null @@ -1,30 +0,0 @@ -# This file has been automatically generated, do not edit. - -cleancache() { - # By default, binary mode portage downloads binary packages from repository and saves - # them in /var/cache/packages. This saves bandwidth in case of reinstalls/downgrades, - # but will eat up lots of HDD space, possibly preventing further installs/upgrades. - - # To address this issue, we check if /var/cache/packages directory is on its own partition - # case in which we do nothing assuming that user gave it plenty space anyway. But if its - # not the case, and /var/cache/packages is just a directory in the system / root hierarchy, - # then we make sure we remove downloaded binary packages after every installation. - - # This function hooks into the pkg_postinst() phase, after the package files are written - # into the filesystem and registered into the database, and just removes the content of - # /var/cache/packages directory (which is the binary package cache). - - export local PORTDIRDEV=$(find /var/cache -maxdepth 0 -printf "%D") - export local PKGDIRDEV=$(find /var/cache/packages -maxdepth 0 -printf "%D") - if [ $PORTDIRDEV = $PKGDIRDEV ] ; then - rm -rf /var/cache/packages/"${CATEGORY}"/"${P}"*.tbz2 - fi -} - -main() { - if [ "${EBUILD_PHASE}" == "postinst" ]; then - cleancache - fi -} - -main |