diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-04-17 17:52:52 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-04-17 17:52:52 +0100 |
commit | 3eb274bfcbe5f3d4c234d626d423d85250c1ada9 (patch) | |
tree | 55912fc8d76d350d051b360735269cf02173f4db | |
parent | c33651eedfa6ec19ac6b523e1dfc3c9986efe9d5 (diff) |
keep packages dir and distfiles dir intact when switching modes
-rwxr-xr-x | modereset | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,7 +2,9 @@ reset_current_mode() { if [ -d /usr/portage/.git ] ; then - rm -rf /usr/portage/* + for i in "(ls /usr/portage|grep -v packages|grep -v distfiles)"; do + rm -rf $i + done rm -rf /usr/portage/.git* rm /etc/portage/make.conf rm /etc/portage/make.profile |