1
0
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:
Marcus Huewe 2016-02-05 16:11:11 +01:00
parent 5d068b091a
commit 51ccd6741c

View File

@ -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")