+ for source in self.source_code_sources:
+ add_component_only_once(source, comps_per_sdist)
+
# check if there is a main source code source at all
if self.get_source_code == True:
if len(self.source_code_sources) < 1:
So it now iterates through both binary and source entries.
Behaviour on my test file is now identical for both binary and source entries:
Sorry :)
The function just wasn't doing anything on -src lines, it was a two lines change to have it apply to src entries too:
=== modified file 'aptsources/ distro. py' distro. py 2010-10-18 09:51:44 +0000 distro. py 2011-04-12 14:49:20 +0000
add_ component_ only_once( source, comps_per_dist)
--- aptsources/
+++ aptsources/
@@ -337,6 +337,9 @@
for source in sources:
+ for source in self.source_ code_sources: only_once( source, comps_per_sdist) source_ code == True: source_ code_sources) < 1:
+ add_component_
+
# check if there is a main source code source at all
if self.get_
if len(self.
So it now iterates through both binary and source entries.
Behaviour on my test file is now identical for both binary and source entries:
root@stgraber-vm:~# diff -Nrup /root/sources.list /etc/apt/ sources. list sources. list 2011-04-12 10:54:17.717508232 -0400 archive. ubuntu. com/ubuntu natty main restricted archive. ubuntu. com/ubuntu natty-updates main restricted archive. ubuntu. com/ubuntu natty-security main restricted archive. ubuntu. com/ubuntu natty main restricted universe multiverse archive. ubuntu. com/ubuntu natty-updates main restricted universe multiverse archive. ubuntu. com/ubuntu natty-security main restricted universe multiverse
--- /root/sources.list 2011-04-12 10:54:12.327508252 -0400
+++ /etc/apt/
@@ -1,15 +1,15 @@
-deb http://
-deb http://
-deb http://
+deb http://
+deb http://
+deb http://
-#deb http:// archive. ubuntu. com/ubuntu natty main restricted archive. ubuntu. com/ubuntu natty-updates main restricted archive. ubuntu. com/ubuntu natty-security main restricted archive. ubuntu. com/ubuntu natty main restricted archive. ubuntu. com/ubuntu natty-updates main restricted archive. ubuntu. com/ubuntu natty-security main restricted
-#deb http://
-#deb http://
+# deb http://
+# deb http://
+# deb http://
-deb-src http:// archive. ubuntu. com/ubuntu natty main restricted archive. ubuntu. com/ubuntu natty-updates main restricted archive. ubuntu. com/ubuntu natty-security main restricted archive. ubuntu. com/ubuntu natty main restricted universe multiverse archive. ubuntu. com/ubuntu natty-updates main restricted universe multiverse archive. ubuntu. com/ubuntu natty-security main restricted universe multiverse
-deb-src http://
-deb-src http://
+deb-src http://
+deb-src http://
+deb-src http://
-#deb-src http:// archive. ubuntu. com/ubuntu natty main restricted archive. ubuntu. com/ubuntu natty-updates main restricted archive. ubuntu. com/ubuntu natty-security main restricted archive. ubuntu. com/ubuntu natty main restricted archive. ubuntu. com/ubuntu natty-updates main restricted archive. ubuntu. com/ubuntu natty-security main restricted
-#deb-src http://
-#deb-src http://
+# deb-src http://
+# deb-src http://
+# deb-src http://