r177 - branches/rewrite/src

Nat Budin partial-mirror-devel@lists.alioth.debian.org
Thu, 22 Jul 2004 19:17:01 -0600


Author: natbudin-guest
Date: Thu Jul 22 19:17:00 2004
New Revision: 177

Modified:
   branches/rewrite/src/PackageList.py
Log:
Fixed a bug: the add method overwrites the list with just one package object.


Modified: branches/rewrite/src/PackageList.py
==============================================================================
--- branches/rewrite/src/PackageList.py	(original)
+++ branches/rewrite/src/PackageList.py	Thu Jul 22 19:17:00 2004
@@ -60,8 +60,8 @@
             self._priority[package.Priority] = []
 
         self._name[package.Name] = package
-        self._subsection[package.Section] = package
-        self._priority[package.Priority] = package
+        self._subsection[package.Section].append(package)
+        self._priority[package.Priority].append(package)
         
 
     def remove(self, package):