mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-23 10:42:14 +01:00
- use atime instead of mtime when guessing the repo arch
atime is more reasonable (e.g. in case of an offline build).
This commit is contained in:
parent
5d068b091a
commit
51ccd6741c
@ -5212,7 +5212,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
cfg = files[0]
|
cfg = files[0]
|
||||||
# find newest file
|
# find newest file
|
||||||
for f in files[1:]:
|
for f in files[1:]:
|
||||||
if os.stat(f).st_mtime > os.stat(cfg).st_mtime:
|
if os.stat(f).st_atime > os.stat(cfg).st_atime:
|
||||||
cfg = f
|
cfg = f
|
||||||
root = ET.parse(cfg).getroot()
|
root = ET.parse(cfg).getroot()
|
||||||
repo = root.get("repository")
|
repo = root.get("repository")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user