1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02: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]
# find newest file
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
root = ET.parse(cfg).getroot()
repo = root.get("repository")