summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-04-17 18:01:44 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-04-17 18:01:44 +0100
commit90eb32f31f8a14858a537b00a3bedff77321a3ff (patch)
treea1d04e469aac04b8f5352f47fef5b125f4981217
parent3eb274bfcbe5f3d4c234d626d423d85250c1ada9 (diff)
Revert "keep packages dir and distfiles dir intact when switching modes"
This reverts commit 3eb274bfcbe5f3d4c234d626d423d85250c1ada9.
-rwxr-xr-xmodereset4
1 files changed, 1 insertions, 3 deletions
diff --git a/modereset b/modereset
index b3c8d41..6fad670 100755
--- a/modereset
+++ b/modereset
@@ -2,9 +2,7 @@
reset_current_mode() {
if [ -d /usr/portage/.git ] ; then
- for i in "(ls /usr/portage|grep -v packages|grep -v distfiles)"; do
- rm -rf $i
- done
+ rm -rf /usr/portage/*
rm -rf /usr/portage/.git*
rm /etc/portage/make.conf
rm /etc/portage/make.profile