aboutsummaryrefslogtreecommitdiff
path: root/scripts/update_virtuoso/check_for_updates.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update_virtuoso/check_for_updates.py')
-rwxr-xr-xscripts/update_virtuoso/check_for_updates.py5
1 files changed, 3 insertions, 2 deletions
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")