[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#754887: [britney] AttributeError: 'dict' object has no attribute 'add' (line 1864, in _compute_groups)



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: britney

While doing some tries with britney2, I ended up with this exception:

Traceback (most recent call last):
  File "./britney.py", line 2770, in <module>
    Britney().main()
  File "./britney.py", line 2736, in main
    self.upgrade_testing()
  File "./britney.py", line 2352, in upgrade_testing
    self.do_all()
  File "./britney.py", line 2270, in do_all
    (nuninst_end, extra) = self.iter_packages(upgrade_me, selected,
nuninst=nuninst_end, lundo=lundo)
  File "./britney.py", line 2152, in iter_packages
    item, affected, undo = self.doop_source(pkg, lundo)
  File "./britney.py", line 1927, in doop_source
    removals=removals)
  File "./britney.py", line 1864, in _compute_groups
    smoothbins.add(check[p])
AttributeError: 'dict' object has no attribute 'add'

I changed this line 1864 to this:
                        smoothbins[p] = check[p]

But I'm not familiar with the code so I'm not really sure whether this
is the correct fix...

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


Reply to: