On vite les retours la ligne qui tranent la fin des fichiers
darcs-hash:20071216195630-61eff-590690dd8fb1e0dd6a4a8f4dc009043d94c82272.gz
This commit is contained in:
parent
7b260d001c
commit
ad48786dd5
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ def get_patch_properties(hash):
|
||||||
hostname = commands.getoutput('hostname -s')
|
hostname = commands.getoutput('hostname -s')
|
||||||
shortrepo = os.path.basename(cwd)
|
shortrepo = os.path.basename(cwd)
|
||||||
if os.path.exists(ID_FILE):
|
if os.path.exists(ID_FILE):
|
||||||
id = file(ID_FILE).readlines()[0]
|
id = file(ID_FILE).readlines()[0].strip()
|
||||||
else:
|
else:
|
||||||
id = shortrepo
|
id = shortrepo
|
||||||
return { 'author': prop.attrib['author'],
|
return { 'author': prop.attrib['author'],
|
||||||
|
@ -219,7 +219,7 @@ if __name__ == "__main__":
|
||||||
if not from_hash:
|
if not from_hash:
|
||||||
if os.path.exists(LAST_SEEN_FILE):
|
if os.path.exists(LAST_SEEN_FILE):
|
||||||
f = open(LAST_SEEN_FILE)
|
f = open(LAST_SEEN_FILE)
|
||||||
from_hash = f.read().strip()
|
from_hash = f.readlines()[0].strip()
|
||||||
f.close()
|
f.close()
|
||||||
else:
|
else:
|
||||||
from_hash = None
|
from_hash = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue