diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-11-22 21:09:18 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-11-22 21:09:18 +0000 |
commit | 7f3418fcd091da3fb5cdc11c4820b43bb90d2d20 (patch) | |
tree | 0c5485644dc16e2dfc173c25dbf8ba63c028d42b /lib/thandy/repository.py | |
parent | cff6c8bac612ae4ed598ef222ada02d3a83ecaa1 (diff) |
Fix a bug in userFilename that left us with a directory in ./~/. Add a facility for controller-readable log messages with --controller-log-format
git-svn-id: file:///home/or/svnrepo/updater/trunk@17367 55e972cd-5a19-0410-ae62-a4d7a52db4cd
Diffstat (limited to 'lib/thandy/repository.py')
-rw-r--r-- | lib/thandy/repository.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/thandy/repository.py b/lib/thandy/repository.py index a6df1bb..2dea1c4 100644 --- a/lib/thandy/repository.py +++ b/lib/thandy/repository.py @@ -483,6 +483,8 @@ class LocalRepository: if h.isInstalled(): alreadyInstalled[h.getRelativePath()] = h + pkg_rp = pfile.getRelativePath() + for f in package['files']: rp, h = f[:2] if alreadyInstalled.has_key(rp): @@ -505,7 +507,7 @@ class LocalRepository: need.add(rp) else: if allHandles.has_key(rp): - installableDict[rp] = allHandles[rp] + installableDict.setdefault(pkg_rp, {})[rp] = allHandles[rp] # Okay; these are the files we need. return need |