From b3eb10770bada631c929fec83247f6fda7ef22a4 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 10 Nov 2020 06:39:10 -0600 Subject: virtuoso: no-cache --- scripts/update_virtuoso/check_for_updates.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/update_virtuoso') diff --git a/scripts/update_virtuoso/check_for_updates.py b/scripts/update_virtuoso/check_for_updates.py index fb66c2e..939a575 100755 --- a/scripts/update_virtuoso/check_for_updates.py +++ b/scripts/update_virtuoso/check_for_updates.py @@ -93,7 +93,8 @@ if no_cache or stamp != last_modified_str: f.write(r.text) f.close upload("metadata.ttl") - with open(fn,"w") as f: - f.write(last_modified_str) + if not no_cache: + with open(fn,"w") as f: + f.write(last_modified_str) else: print("Metadata is up to date") -- cgit v1.2.3