Skip to content

Commit

Permalink
Merge pull request #46 from yast/saffer_remove_junk
Browse files Browse the repository at this point in the history
less aggresive remove_junk script
  • Loading branch information
jreidinger committed Jun 1, 2015
2 parents f3c790e + 98a1193 commit 0def20e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions package/yast2-update.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jun 1 08:43:53 UTC 2015 - jreidinger@suse.com

- make junk_cleaner less aggresive to not remove important files
(fate#317900)
- 3.1.31

-------------------------------------------------------------------
Fri May 29 14:58:19 UTC 2015 - jreidinger@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-update.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-update
Version: 3.1.30
Version: 3.1.31
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
4 changes: 3 additions & 1 deletion src/bin/remove_junk
@@ -1,13 +1,15 @@
#!/bin/bash

# remove old YaST directory from YaST1 era
if test -d $1/var/lib/YaST ; then
/bin/rm -fr $1/var/lib/YaST
fi

if test -d $1/var/lib/YaST2 ; then
/usr/bin/find $1/var/lib/YaST2 -name "*" -a -type f -a \( -name "users.ycp" -prune -o -exec rm -f -- {} \; \)
# place here files from dropped modules
fi

# remove old you stuff which can be quite big
if test -d $1/var/lib/YaST2/you ; then
/bin/rm -f $1/var/lib/YaST2/you/quickcheck
/bin/rm -fr $1/var/lib/YaST2/you/{files,installed,mnt,scripts}
Expand Down

0 comments on commit 0def20e

Please sign in to comment.