summarylogtreecommitdiffstats
path: root/modify_path.patch
blob: 47a8e035f52421c92cc90162e0412853c946a05d (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
43
diff -Naur a/program/functions.py b/program/functions.py
--- a/program/functions.py	2010-12-04 17:18:57.000000000 +0000
+++ b/program/functions.py	2015-10-13 07:12:20.605894444 +0000
@@ -279,7 +279,7 @@
 def make_system_dirs( target_root ):
     print _('Making system dirs ...')
     errors = []
-    for each in ( '/proc', '/sys', '/tmp', '/mnt', '/media', '/media/cdrom0' ):
+    for each in ( '/run', '/proc', '/sys', '/tmp', '/mnt', '/media', '/media/cdrom0' ):
         tmp = commands.getstatusoutput( 'mkdir -p %s'%(target_root + each)  )
         if tmp[0] != 0:
             errors.append( _('Error occurred when mkdir %s , you need to make it manually.')%(target_root + each) )
@@ -438,6 +438,7 @@
     defaultExcludes.append( '/proc' )
     defaultExcludes.append( '/sys' )
     defaultExcludes.append( '/tmp' )
+    defaultExcludes.append( '/run' )
     defaultExcludes.append( '/mnt' )
     defaultExcludes.append( '/media' )
     
@@ -490,16 +491,16 @@
                 defaultExcludes.append( '/lib/modules/' + kernelVersion + '/volatile/' + each )
 
     # /var/cache/apt/archives/*.deb
-    contents = commands.getoutput( 'ls /var/cache/apt/archives | grep ".deb" ' )
+    contents = commands.getoutput( 'ls /var/cache/pacman/pkg ' )
     if contents:
         for each in contents.split('\n'):
-            defaultExcludes.append( '/var/cache/apt/archives/' + each )
+            defaultExcludes.append( '/var/cache/pacman/pkg' + each )
     
     # /var/cache/apt/archives/partial/*
-    contents = commands.getoutput( 'ls /var/cache/apt/archives/partial/' )
-    if contents:
-        for each in contents.split('\n'):
-            defaultExcludes.append( '/var/cache/apt/archives/partial/' + each )
+    #contents = commands.getoutput( 'ls /var/cache/apt/archives/partial/' )
+    #if contents:
+    #    for each in contents.split('\n'):
+    #        defaultExcludes.append( '/var/cache/apt/archives/partial/' + each )
     
     return defaultExcludes