Debian Bug report logs - #340099
debarchiver: please provide filtering hook

version graph

Package: debarchiver; Maintainer for debarchiver is Ola Lundqvist <[email protected]>; Source for debarchiver is src:debarchiver (PTS, buildd, popcon).

Reported by: Geoff Crompton <[email protected]>

Date: Sun, 20 Nov 2005 23:03:03 UTC

Severity: wishlist

Found in version debarchiver/0.1.8

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Ola Lundqvist <[email protected]>:
Bug#340099; Package debarchiver. (full text, mbox, link).


Acknowledgement sent to Geoff Crompton <[email protected]>:
New Bug report received and forwarded. Copy sent to Ola Lundqvist <[email protected]>. (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Geoff Crompton <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: debarchiver: please provide filtering hook
Date: Mon, 21 Nov 2005 09:52:03 +1100
Package: debarchiver
Version: 0.1.8
Severity: wishlist


It would be great if there was a way to specify a script in the config
file that is called to vet whether the package should be accepted into
the archive or not. In my case, I'd like to be able to deny uploads to
my sarge archive if the incoming package is already in the sarge archive
(or if it is a higher version number).

I guess one way of doing this would be to have uploads go into a
directory that debarchiver doesn't watch, and have the administrator
move the upload across if they are satisfied. Do you know of tools to
make this easily automated?

I know some perl, so if you can suggest what a good approach might be, I
could do some hacking/testing.

Thanks!
Geoff



Information forwarded to [email protected], Ola Lundqvist <[email protected]>:
Bug#340099; Package debarchiver. (full text, mbox, link).


Acknowledgement sent to [email protected]:
Extra info received and forwarded to list. Copy sent to Ola Lundqvist <[email protected]>. (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Ola Lundqvist <[email protected]>
To: Geoff Crompton <[email protected]>, [email protected]
Subject: Re: Bug#340099: debarchiver: please provide filtering hook
Date: Mon, 21 Nov 2005 16:35:04 +0100
Hello

On Mon, Nov 21, 2005 at 09:52:03AM +1100, Geoff Crompton wrote:
> Package: debarchiver
> Version: 0.1.8
> Severity: wishlist
> 
> 
> It would be great if there was a way to specify a script in the config
> file that is called to vet whether the package should be accepted into
> the archive or not. In my case, I'd like to be able to deny uploads to
> my sarge archive if the incoming package is already in the sarge archive
> (or if it is a higher version number).

I think there are wishlist bugs about this (version check) already. Not about
this plugin-like function though.

> I guess one way of doing this would be to have uploads go into a
> directory that debarchiver doesn't watch, and have the administrator
> move the upload across if they are satisfied. Do you know of tools to
> make this easily automated?
> 
> I know some perl, so if you can suggest what a good approach might be, I
> could do some hacking/testing.

If you look in the code there are two functions you could add the hooks
too:
 * handleDebOnlyFile
   Handle the case when installing a single .deb file (like a kernel)
 * handleChangesFile
   Handle the case when installing a .changes file and all the
   files it point to.

You could add the hooks to these two functions in order to make what
you want.

But I assume you just want to add this kind of checking to the case
when .changes files are used for sorting and that is easier.
There is a function called verifyChangesFile that is used for this kind
of verification. Currently I think it is only used for signature
verfication.

So I really suggest adding these hooks to verifyChangesFile (and then
as an addition to handleDebOnlyFile). These functions have been changed
quite recently so I suggest that you use the source from sid or
my SVN repository (https://svn.opal.dhs.org/fsp/trunk/debarchiver)
when starting to adding hooks.

Regards,

// Ola

> Thanks!
> Geoff
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [email protected]                     Annebergsslingan 37      \
|  [email protected]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 16:15:09 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.