-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 2011-01-06 18:27, Russ Allbery wrote:
> Niels Thykier <ni...@thykier.net> writes:
> [...]
>> That is, if I run:
> 
>>  lintian A.deb B.deb A-data.deb B-data.deb
> 
>> should lintian then do A + A-data and then B + B-data or just in
>> "whatever" order it feels like?
> 
> I think what we'd need to do is unpack all the packages we're going to
> check before we start checking them (provided that we're not running on
> the whole archive), since we otherwise won't know the correct sequence
> that will let the inter-binary checks work properly.
> 

That sounds like an approach we could take (at least if we cannot
trivial determine how the packages are related).  I will probably get
back to this when I am done refactoring/reducing the size of
frontend/lintian.

Speaking of unpacking; as I understand it we once had an "unpack-level
2" which has now been removed in favour of collection.  I am considering
to remove the "unpack-level 1" as well and move everything to collection
as a part of this.
  I feel the unpack code makes the lintian code harder to read and
understand.  If we migrate the last of the unpack stuff to collection I
think we can reduce the complexity of the "PACKAGE: foreach" loop
considerably.
  I.e. It took me a while to figure out that the $unpack_level is either
1 (if $action is "check" or "unpack") or 0 if $action is "remove" in the
"PACKAGE: foreach". No other $action reaches that far and the user
cannot influence $unpack_level (beyond changing $action).

~Niels
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJNJgLwAAoJEAVLu599gGRCsyUQAIDkADGQDPMV4CNBwyE+eQyq
UZV7Z6dJ4v0BeqanzjlAtP/VUG94OKJIaCPNH6M5KL1Bxl+PVYGGgujvEPS+PNQ7
Xx96Sb3CFQHtpBcgDaeWZxqG3qA5ORZXT6qpdEa41TGFEgHu8xXcMjoEoqq6vm2w
Zx39vU+4wMdbW03Cphgfa+DCMANJWGDHYc32vDQM4VJLinshKvIYm8MyNqKKDHYJ
OIImI0PfU5wg8ekT7JxR3FzBm6/h3tSAi+dZoJCoZhN+Bh38xSfnMvDLU4/Ok9tx
BWva3RSKfdS5GBHint4HGh7YqSs4KlhaMg4l3QKDwCJaE9G277eYNiAJQ8gSpaU7
PCXjjMVhjMVfM66+vjjpRUaFjTsz8RD27YtgLtw0az+6cWX3LyCvsNceb4OMkMYT
62tZ9xNG5a9KzquTshfeM9GGAIA0ARrIQnLaMErvf3UQ+wRokHVCwqrr66iZAxFA
dab/g+Mw1FLUJGHC9pm9rGxupoz5moq9SoomHCbZXpcqT+uMKfWZuNoE7Cy9WFZp
SWDDlWK+JLIvcIPULV2K0RuVL9sEEexr6AG9oIPNLOlm7MWOYOWaE4CG9D/P/aTX
7R1nQCVU06l9NwtYfjBYCv1xM5KmSLm8h4LSPt9gCzAyx8pOae4+Tlzs8JeFOFby
TXSIH9Na9HeW2VR0+72W
=00mE
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to