changeset 37:6a0873a913c5

register updated die dri, wenn sie nicht gleich der gespeicherten dri ist, auch wenn update nicht gleich true ist.
author dwinter
date Mon, 03 Mar 2014 18:07:08 +0100
parents be8640c08d99
children 6d0d7f1c11f2
files harvestToPurl.py managePurls/manageIndexMetaPURLs.py
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/harvestToPurl.py	Mon Mar 03 17:32:06 2014 +0100
+++ b/harvestToPurl.py	Mon Mar 03 18:07:08 2014 +0100
@@ -131,6 +131,6 @@
         print "ERROR: path %s does not exist!"%path
         sys.exit(2)
         
-    harvestIndexMeta(path,user,delpath=delpath,replacepath=replacepath,update=True)
+    harvestIndexMeta(path,user,delpath=delpath,replacepath=replacepath,update=False)
     
     
--- a/managePurls/manageIndexMetaPURLs.py	Mon Mar 03 17:32:06 2014 +0100
+++ b/managePurls/manageIndexMetaPURLs.py	Mon Mar 03 18:07:08 2014 +0100
@@ -216,10 +216,11 @@
         else:
             purl =None
             
-        if update: # wenn update compare this with the purl which is stored in the index.meta file.
-            if (driIndexMeta is not None) & (purl!=driIndexMeta):
+        # wenn update compare this with the purl which is stored in the index.meta file.
+        if (driIndexMeta is not None) & (purl!=driIndexMeta):
                 #wenn nicht gleich, dann trage die driIndexMeta in die purl db!
                 purl=driIndexMeta
+                update=True
             
         
         if purl!=None: