On 2013-01-08 16:48, Ansgar Burchardt wrote:
> Hi,
> 
> I finally got around to implement this in dak. The patch is available in
> the f/extra-sources branch of my Git repository[1].
> 
> Sources only referenced by Built-Using will have a field
> 
>     Extra-Source-Only: yes
> 

Your demo seems to be using ExtraSourceOnly.  :)

> On franck.d.o you can look at the changes this would introduce to
> testing's Sources with
> 
> ----
> cd /home/ansgar/public_html/root/srv/ftp-master.debian.org/ftp/dists
> zdiff -d -u testing{-old,}/main/source/Sources.gz
> ----
> 
> The files are also accessible from [2].
> 
> Niels, could you update the patch to britney you prepared earlier?
> 
> Ansgar
> 
>   [1] <https://ftp-master.debian.org/users/ansgar/dak.git>
>   [2] <http://ftp-master.debian.org/users/ansgar/root/>
> 
> 

Attached is the updated patch and the test-suite has been updated
accordingly.

~Niels

>From fdf9089905f78f2e9f8253f60de5a5b723fb893b Mon Sep 17 00:00:00 2001
From: Niels Thykier <ni...@thykier.net>
Date: Fri, 29 Jun 2012 23:23:25 +0200
Subject: [PATCH] Ignore sources only referenced by Built-Using

Signed-off-by: Niels Thykier <ni...@thykier.net>
---
 britney.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/britney.py b/britney.py
index 0b03d30..7f56976 100755
--- a/britney.py
+++ b/britney.py
@@ -453,6 +453,9 @@ class Britney(object):
         step = Packages.step
 
         while step():
+            if get_field('Extra-Source-Only', 'no') == 'yes':
+                # Ignore sources only referenced by Built-Using
+                continue
             pkg = get_field('Package')
             ver = get_field('Version')
             # There may be multiple versions of the source package
-- 
1.7.10.4

Reply via email to