voyageur    15/03/17 16:52:18

  Added:                xplanetFX-2.6.4-gentoo-path.patch
  Log:
  Initial commit, fixes bug #364071
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
C74525F2)

Revision  Changes    Path
1.1                  x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch?rev=1.1&content-type=text/plain

Index: xplanetFX-2.6.4-gentoo-path.patch
===================================================================
diff -Naur usr.orig/bin/xplanetFX usr/bin/xplanetFX
--- usr.orig/bin/xplanetFX      2015-03-05 19:58:41.000000000 +0100
+++ usr/bin/xplanetFX   2015-03-16 14:28:28.235256123 +0100
@@ -115,7 +115,7 @@
     WGETPROXY="-e use_proxy=on -e http_proxy="$PROXY
 fi
 
-if which gsed; then
+if which gsed > /dev/null 2>&1; then
     SEDEXE='gsed'
 else
     SEDEXE='sed'
diff -Naur usr.orig/share/xplanetFX/xplanetFX_gtk 
usr/share/xplanetFX/xplanetFX_gtk
--- usr.orig/share/xplanetFX/xplanetFX_gtk      2015-02-17 16:55:12.000000000 
+0100
+++ usr/share/xplanetFX/xplanetFX_gtk   2015-03-16 14:28:53.147271051 +0100
@@ -44,10 +44,7 @@
 
 gobject.threads_init()
 
-basedir = os.path.dirname(os.path.realpath(__file__))
-if not os.path.exists(os.path.join(basedir, "xplanetFX_gtk.py")):
-    if os.path.exists(os.path.join(os.getcwd(), "xplanetFX_gtk.py")):
-        basedir = os.getcwd()
+basedir = "/usr/share/xplanetFX"
 sys.path.insert(0, basedir)
 
 class GUI():
diff -Naur usr.orig/share/xplanetFX/xplanetFX_tray 
usr/share/xplanetFX/xplanetFX_tray
--- usr.orig/share/xplanetFX/xplanetFX_tray     2014-05-08 01:46:44.000000000 
+0200
+++ usr/share/xplanetFX/xplanetFX_tray  2015-03-16 14:29:20.634287466 +0100
@@ -27,10 +27,7 @@
     
 gobject.threads_init()
 
-basedir = os.path.dirname(os.path.realpath(__file__))
-if not os.path.exists(os.path.join(basedir, "xplanetFX_gtk.py")):
-    if os.path.exists(os.path.join(os.getcwd(), "xplanetFX_gtk.py")):
-        basedir = os.getcwd()
+basedir = "/usr/share/xplanetFX"
 sys.path.insert(0, basedir)
 
 




Reply via email to