else:
keepconnection = 1
+ cache_path = "/var/cache/edb"
+
if makepickle is None:
makepickle = "/var/cache/edb/metadata.idx.most_recent"
if not metadata[baseurl].has_key("data"):
metadata[baseurl]["data"]={}
+ if not os.access(cache_path, os.W_OK):
+ sys.stderr.write("!!! Unable to write binary metadata to disk!\n")
+ sys.stderr.write("!!! Permission denied: '%s'\n" % cache_path)
+ return metadata[baseurl]["data"]
+
filelist = dir_get_list(baseurl, conn)
tbz2list = match_in_array(filelist, suffix=".tbz2")
metalist = match_in_array(filelist, prefix="metadata.idx")