try/catch makes it just slighlty better, but not really as nice as it
should be (lots of misalignment, redundant/double data and missing data):
% emerge -Kgp gawk
These are the packages that would be merged, in order:
Calculating dependencies -
Fetching binary packages info...
!!! Unable to get listing: 404 Server did not respond successfully (404: Not Found)
-- DONE!
... done!
svn path=/main/branches/prefix/; revision=8463
if not metadata[baseurl].has_key("data"):
metadata[baseurl]["data"]={}
- filelist = dir_get_list(baseurl, conn)
+ try:
+ filelist = dir_get_list(baseurl, conn)
+ except Exception, e:
+ sys.stderr.write("!!! "+str(e)+"\n")
+ sys.stderr.flush()
+ return metadata[baseurl]["data"]
+
tbz2list = match_in_array(filelist, suffix=".tbz2")
metalist = match_in_array(filelist, prefix="metadata.idx")
del filelist