[Frugalware-git] frugal-tweak: pyfpmtools *debug mode into pyfpmtools

bouleetbil bouleetbil at frogdev.info
Fri Jan 13 14:52:38 CET 2012


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

commit 83a6b57afc5a61459e9813146983d230b238e6ca
Author: bouleetbil <bouleetbil at frogdev.info>
Date:   Fri Jan 13 11:12:44 2012 +0100

pyfpmtools
*debug mode into pyfpmtools

diff --git a/py-pacman/pyfpmtools/pyfpmtools/tools.py b/py-pacman/pyfpmtools/pyfpmtools/tools.py
index a2884ae..efdc2fc 100644
--- a/py-pacman/pyfpmtools/pyfpmtools/tools.py
+++ b/py-pacman/pyfpmtools/pyfpmtools/tools.py
@@ -31,17 +31,20 @@ devel_mode=1
homedir = os.path.expanduser('~')
fileconfig=homedir+"/.pyfpm"

-UI_PYFPM = "src/pyfpm.ui"
-UI_PYFPMCONF = "src/pyfpm-configuration.ui"
-UI_SPLASH = "src/splash.ui"
-UI_PYFUN ="src/pyfun.ui"
-UI_PYINST="src/pyfpminstall.ui"
-PYFPM_INST="src/pyfpminstall.py"
-PYFPM_FUN="src/pyfun.py"
-PYFPMCONF="src/pyfpm-configuration.py"
-PICTURE_NOT_AVAILABLE="src/screenshot_not_available.png"
-
-if devel_mode==0:
+if devel_mode==1:
+	UI_PYFPM = "src/pyfpm.ui"
+	UI_PYFPMCONF = "src/pyfpm-configuration.ui"
+	UI_SPLASH = "src/splash.ui"
+	UI_PYFUN ="src/pyfun.ui"
+	UI_PYINST="src/pyfpminstall.ui"
+	PYFPM_INST="src/pyfpminstall.py"
+	PYFPM_FUN="src/pyfun.py"
+	PYFPMCONF="src/pyfpm-configuration.py"
+	PICTURE_NOT_AVAILABLE="src/screenshot_not_available.png"
+	#for enable some trace
+	pacmang2.libpacman.printconsole=1
+	pacmang2.libpacman.debug=1
+else:
UI_PYFPM = "/usr/share/pyfpm/ui/pyfpm.ui"
UI_SPLASH = "/usr/share/pyfpm/ui/splash.ui"
UI_PYFUN ="/usr/local/share/pyfpm/ui/pyfun.ui"


More information about the Frugalware-git mailing list