~mvo/update-manager/not-automatic

« back to all changes in this revision

Viewing changes to UpdateManager/Core/utils.py

  • Committer: Michael Vogt
  • Date: 2009-01-27 10:01:17 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090127100117-hdid4bfspg56z3q4
improve the debug output via the "DEBUG_UPDATE_MANAGER"
environment

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
      c.request("HEAD", path)
78
78
      res = c.getresponse()
79
79
      if debug_func:
80
 
        debug_func("_sourcesListEntryDownloadable result '%s'" % res.status)
 
80
        debug_func("url_downloadable result '%s'" % res.status)
81
81
      res.close()
82
82
    except Exception, e:
83
83
      debug_func("error from httplib: '%s'" % e)
93
93
      f.cwd(os.path.dirname(path))
94
94
      size = f.size(os.path.basename(path))
95
95
      f.quit()
 
96
      if debug_func:
 
97
        debug_func("ftplib.size() returned: %s" % size)
96
98
      if size != 0:
97
99
        return True
98
100
      return False