comparison contrib/sawmill/web/details.py @ 463:52f841330c16

Make walking of revision path more stable
author Sascha Teichmann <teichmann@intevation.de>
date Thu, 09 Sep 2010 13:49:37 +0000
parents 333232953771
children 7fd8af79e652
comparison
equal deleted inserted replaced
462:058856954e2d 463:52f841330c16
100 tracks_path = os.path.join(path, "tracks") 100 tracks_path = os.path.join(path, "tracks")
101 for track in os.listdir(tracks_path): 101 for track in os.listdir(tracks_path):
102 track_path = os.path.join(tracks_path, track) 102 track_path = os.path.join(tracks_path, track)
103 if not os.path.isdir(track_path): continue 103 if not os.path.isdir(track_path): continue
104 revisions_path = os.path.join(track_path, "pkg") 104 revisions_path = os.path.join(track_path, "pkg")
105 if not os.path.isdir(revisions_path): continue
105 for revision in os.listdir(revisions_path): 106 for revision in os.listdir(revisions_path):
106 revision_path = os.path.join(revisions_path, revision) 107 revision_path = os.path.join(revisions_path, revision)
107 if not os.path.isdir(revision_path): continue 108 if not os.path.isdir(revision_path): continue
108 status_file = os.path.join(revision_path, "status") 109 status_file = os.path.join(revision_path, "status")
109 if not os.path.isfile(status_file): continue 110 if not os.path.isfile(status_file): continue
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)