Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=924fe2fe0e15add5dd8811b997fa529cf53aef12

commit 924fe2fe0e15add5dd8811b997fa529cf53aef12
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Mon Sep 20 22:50:23 2010 +0200

*use rm fordelete pacman-g2 cache (for start it with gksu/ksu if neccessary)

diff --git a/frugal-mono-tools/WID_Update.cs b/frugal-mono-tools/WID_Update.cs
index d00c92d..bf6d914 100644
--- a/frugal-mono-tools/WID_Update.cs
+++ b/frugal-mono-tools/WID_Update.cs
@@ -79,7 +79,7 @@ namespace frugalmonotools
}
private void _initCache()
{
-                       if(!MainClass.boRoot) BTN_ClearCache.Visible=false;
+
//cache
List<string>  fpms = new List<string>();
listStore.Clear();
@@ -193,7 +193,10 @@ namespace frugalmonotools
}
protected virtual void OnBTNClearCacheClicked (object sender, System.EventArgs 
e)
{
-                       if(MainClass.boRoot)    
System.IO.File.Delete(dirCache+"/*.fpm");
+                       if(MainClass.boRoot)
+                               Outils.Excecute("rm",dirCache+"/pkg/*.fpm && 
exit",true);
+                       else
+                               Outils.ExcecuteAsRoot("rm  
"+dirCache+"/pkg/*.fpm && exit",true);
_initCache();
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to