Mercurial > traipse_dev
comparison upmana/updatemana.py @ 58:27e58b0483e7 traipse_dev
Fixed major bug that caused an error to spit out in Windows platforms.
Added /tmp/tmp.txt placeholder to ensure the /tmp/ folder is there.
removed more print statements.
author | sirebral |
---|---|
date | Sat, 08 Aug 2009 00:25:33 -0500 |
parents | 9014d7861bb3 |
children | 5aff3ef1ae46 |
comparison
equal
deleted
inserted
replaced
57:9014d7861bb3 | 58:27e58b0483e7 |
---|---|
100 self.mana = self.LoadDoc() | 100 self.mana = self.LoadDoc() |
101 for ignore in self.ignorelist: | 101 for ignore in self.ignorelist: |
102 shutil.copy(ignore, orpg.dirpath.dir_struct["home"] + 'upmana' + os.sep + 'tmp' + os.sep +ignore.split('/')[len(ignore.split('/')) - 1]) | 102 shutil.copy(ignore, orpg.dirpath.dir_struct["home"] + 'upmana' + os.sep + 'tmp' + os.sep +ignore.split('/')[len(ignore.split('/')) - 1]) |
103 hg.clean(self.repo, self.current) | 103 hg.clean(self.repo, self.current) |
104 for ignore in self.ignorelist: | 104 for ignore in self.ignorelist: |
105 print ignore.split('/')[len(ignore.split('/')) - 1] | |
106 shutil.copyfile(orpg.dirpath.dir_struct["home"] + 'upmana' + os.sep + 'tmp' + os.sep + ignore.split('/')[len(ignore.split('/')) - 1], ignore) | 105 shutil.copyfile(orpg.dirpath.dir_struct["home"] + 'upmana' + os.sep + 'tmp' + os.sep + ignore.split('/')[len(ignore.split('/')) - 1], ignore) |
107 os.remove(orpg.dirpath.dir_struct["home"] + 'upmana' + os.sep + 'tmp' + os.sep + ignore.split('/')[len(ignore.split('/')) - 1]) | 106 os.remove(orpg.dirpath.dir_struct["home"] + 'upmana' + os.sep + 'tmp' + os.sep + ignore.split('/')[len(ignore.split('/')) - 1]) |
108 | 107 |
109 def LoadDoc(self): | 108 def LoadDoc(self): |
110 ignore = open(self.filename) | 109 ignore = open(self.filename) |