diff options
| author | 2009-07-23 23:17:09 +0200 | |
|---|---|---|
| committer | 2009-07-23 23:17:09 +0200 | |
| commit | 67deff45f6d3c198aa482c5f15daa7bf155f347b (patch) | |
| tree | 9d72439afb755b1b6699e7315efef26346b0cab9 | |
| parent | 9017b45286fa5da3e648c934c133bc13c1444dcc (diff) | |
fix patch from Luca
If 'alias' isn't set, we use the default value 'None'. So we need to
check, if 'alias' isn't 'None' before iterate over it.
| -rwxr-xr-x | mini-dinstall | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mini-dinstall b/mini-dinstall index 1c1d2d1..63a5471 100755 --- a/mini-dinstall +++ b/mini-dinstall @@ -555,7 +555,7 @@ class IncomingDir(threading.Thread): changefiledist = changefile['distribution'] for dist in distributions.keys(): distributions[dist] = distoptionhandler.get_option_map(dist) - if distributions[dist].has_key('alias') and changefiledist in distributions[dist]['alias']: + if distributions[dist]['alias'] != None and changefiledist in distributions[dist]['alias']: logger.info('Distribution "%s" is an alias for "%s"' % (changefiledist, dist)) break else: |
