summaryrefslogtreecommitdiff
path: root/multimedia/openshot/files/patch-setup.py
blob: 637829c0e50f1120e1097733885077c89e3717d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- ./setup.py.orig	2011-02-04 12:07:09.000000000 -0800
+++ ./setup.py	2011-03-04 04:57:02.000000000 -0800
@@ -40,10 +40,10 @@
 	 # XDG desktop mime types cache
 	 ('share/mime/packages',['xdg/openshot.xml']),
 	 # launcher (mime.types)
-	 ('lib/mime/packages',['xdg/openshot']),
+	 #('lib/mime/packages',['xdg/openshot']),
 	 # man-page ("man 1 openshot")
-	 ('share/man/man1',['docs/openshot.1']),
-	 ('share/man/man1',['docs/openshot-render.1']),
+	 ('man/man1',['docs/openshot.1']),
+	 ('man/man1',['docs/openshot-render.1']),
 ]
 
 # Add all the translations
@@ -70,7 +70,7 @@
 
 FAILED = 'Failed to update.\n'
 
-if ROOT and dist != None:
+if ROOT and sys.argv[1] == "install" and dist != None:
 	#update the XDG Shared MIME-Info database cache
 	try: 
 		sys.stdout.write('Updating the Shared MIME-Info database cache.\n')
@@ -79,11 +79,11 @@
 		sys.stderr.write(FAILED)
 
 	#update the mime.types database
-	try: 
-		sys.stdout.write('Updating the mime.types database\n')
-		subprocess.call("update-mime")
-	except:
-		sys.stderr.write(FAILED)
+	#try: 
+	#	sys.stdout.write('Updating the mime.types database\n')
+	#	subprocess.call("update-mime")
+	#except:
+	#	sys.stderr.write(FAILED)
 
 	# update the XDG .desktop file database
 	try: