Package: reprepro
Version: 0.5-1
Severity: normal
Tags: patch

On conf/updates, when using the FilterList field with purge as the default
option the packages already downloaded that are no longer selected by the
filter are not removed.

After looking at the code I've realized that the parsing was not setting the
right options, I'm attaching a simple patch that fixes it.

-- 
Sergio Talens-Oliag <[EMAIL PROTECTED]>   <http://people.debian.org/~sto/>
Key fingerprint = 29DF 544F  1BD9 548C  8F15 86EF  6770 052B  B8C1 FA69
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_filterlist_defaults.dpatch by Sergio Talens-Oliag <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad --exclude=CVS --exclude=.svn ./filterlist.c 
/tmp/dpep-work.zGKK83/reprepro/filterlist.c
--- ./filterlist.c      2005-09-02 09:23:02.000000000 +0200
+++ /tmp/dpep-work.zGKK83/reprepro/filterlist.c 2005-09-06 10:33:28.654069648 
+0200
@@ -65,9 +65,9 @@
        } else if( strncmp(configline,"hold",4) == 0 && xisspace(configline[4]) 
) {
                defaulttype = flt_hold; filename = configline + 4;
        } else if( strncmp(configline,"deinstall",9) == 0 && 
xisspace(configline[9]) ) {
-               defaulttype = flt_hold; filename = configline + 9;
+               defaulttype = flt_deinstall; filename = configline + 9;
        } else if( strncmp(configline,"purge",5) == 0 && 
xisspace(configline[5]) ) {
-               defaulttype = flt_hold; filename = configline + 5;
+               defaulttype = flt_purge; filename = configline + 5;
        } else if( strncmp(configline,"error",5) == 0 && 
xisspace(configline[5]) ) {
                defaulttype = flt_error; filename = configline + 5;
        } else {

Attachment: signature.asc
Description: Digital signature

Reply via email to