/[gli]/branches/qs/src/GLIPortage.py
Gentoo

Diff of /branches/qs/src/GLIPortage.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1757 Revision 1760
77 counter = int(counter_f.readline().strip()) 77 counter = int(counter_f.readline().strip())
78 counter_f.close() 78 counter_f.close()
79 except: 79 except:
80 counter = 0 80 counter = 0
81 counter += 1 81 counter += 1
82 if not os.path.isdir(self._chroot_dir + "/var"):
83 os.mkdir(self._chroot_dir + "/var", mode=0755)
84 if not os.path.isdir(self._chroot_dir + "/var/cache"):
85 os.mkdir(self._chroot_dir + "/var/cache", mode=0755)
86 if not os.path.isdir(self._chroot_dir + "/var/cache/edb"):
87 os.mkdir(self._chroot_dir + "/var/cache/edb", mode=0775)
88 # chown to root:portage
82 counter_f = open(self._chroot_dir + "/var/cache/edb/counter", "w") 89 counter_f = open(self._chroot_dir + "/var/cache/edb/counter", "w")
83 counter_f.write(str(counter)) 90 counter_f.write(str(counter))
84 counter_f.close() 91 counter_f.close()
85 return counter 92 return counter
86 93

Legend:
Removed from v.1757  
changed lines
  Added in v.1760

  ViewVC Help
Powered by ViewVC 1.1.20