updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / umit / setup.patch
blob34788cbef2337902445c8acf9f12a03eebb65cd7
1 *** setup.py.orig 2009-08-02 17:16:31.425667179 +0800
2 --- setup.py 2009-08-02 17:18:53.985653155 +0800
3 ***************
4 *** 266,273 ****
6 self.set_perms()
7 self.set_modules_path()
8 ! self.fix_paths()
9 ! self.create_uninstaller()
10 self.finish_banner()
12 def create_uninstaller(self):
13 --- 266,273 ----
15 self.set_perms()
16 self.set_modules_path()
17 ! #self.fix_paths()
18 ! #self.create_uninstaller()
19 self.finish_banner()
21 def create_uninstaller(self):
22 ***************
23 *** 330,336 ****
24 if self.pkgmaintainer and self.root:
25 modules = os.path.join('/', modules[len(self.root):])
27 ! ucontent.insert(uline, "sys.path.insert(0,'%s')\n" % modules)
29 ufile = open(umit, "w")
30 ufile.writelines(ucontent)
31 --- 330,337 ----
32 if self.pkgmaintainer and self.root:
33 modules = os.path.join('/', modules[len(self.root):])
35 ! modules = "/usr/share/umit"
36 ! ucontent.insert(uline, "sys.path = ['%s'] + sys.path\n" % modules)
38 ufile = open(umit, "w")
39 ufile.writelines(ucontent)