diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-11-16 21:10:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-11-16 21:10:45 +0000 |
commit | 115bc0308c9384967ed25975aa21a312a2591524 (patch) | |
tree | e99308727aa9fd25712f1ee4c34a6edb0dd34ff0 /lib/thandy/repository.py | |
parent | f92241888b4dbf4616fa41aab8a92c1c6b37bfbb (diff) |
Make client downloading work. Testing still needed. Glue still needed for installation.
git-svn-id: file:///home/or/svnrepo/updater/trunk@17293 55e972cd-5a19-0410-ae62-a4d7a52db4cd
Diffstat (limited to 'lib/thandy/repository.py')
-rw-r--r-- | lib/thandy/repository.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/thandy/repository.py b/lib/thandy/repository.py index af2fa4f..636ff86 100644 --- a/lib/thandy/repository.py +++ b/lib/thandy/repository.py @@ -174,6 +174,9 @@ class PkgFile: def clear(self): self._mtime = None + def load(self): + pass + def getRelativePath(self): return self._relativePath @@ -258,7 +261,7 @@ class LocalRepository: return pkg def getRequestedFile(self, relPath): - """ """ + """DOCDOC""" for f in self._metafiles: if f.getRelativePath() == relPath: return f @@ -274,6 +277,8 @@ class LocalRepository: if rp == relPath: return PkgFile(self, rp, thandy.formats.parseHash(h)) + return None + def getFilesToUpdate(self, now=None, trackingBundles=(), hashDict=None): """Return a set of relative paths for all files that we need to fetch. Assumes that we care about the bundles |