Grouping packages (infra-513663 branch)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hey
So I spent some time today on the infrastructure branch and I have
committed some prototype code for handling package grouping.
The results can be seen by running:
LINTIAN_ROOT='' private/processable-prototype.pl <a lot of packages>
Sample results: When invoked on
javahelper_0.33_all.deb
jarwrapper_0.33_all.deb
lintian_2.5.0_i386.changes
eclipse/eclipse_3.5.2-7.dsc
eclipse/eclipse-platform*3.5.2-7*.deb
(which happened to be the packages I had on my machine), I got the
following output:
"""
Creating group for eclipse
Group "eclipse" consists of [eclipse (source), eclipse-platform\
(binary), eclipse-platform-data (binary)]
Group "javatools" consists of [jarwrapper (binary), javahelper (binary)]
Group "lintian" consists of [lintian_2.5.0_i386 (changes), lintian\
(source), lintian (binary)]
"""
Which I find very positive; it has managed to order the javatools
binaries plus the source and binaries from eclipse correctly without any
changes file.
Now on to the more technical stuff. I have added two perl modules,
namely "Lintian::Processable" and "Lintian::ProcessableGroup". An
instance of the Processable is something lintian is expected to process
(e.g. a binary, a source or a changes file) and the ProcessableGroup
manages a set of related Processables.
These modules are currently only used in the prototype script in
private. However, I intend to use them to ensure related packages are
always unpacked when the checks are run (#513663).
Comments and patches are (as always) welcome,
~Niels
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBCAAGBQJNYUzRAAoJEAVLu599gGRCYHsP/iaMMjFWIQTXnD8exIGIqZu/
+c+gCUxVi8Ua3djgtzkQZ25edkH+YDzNcCGHeybZeNjy1wRbMprywSqUf6Cdug8d
ZQHa2G16cg3YBKCNF2RHFQ4QT4T6EPgd3h5wHTciHsh8CqVdXMLgn5c+ZJ83/d1+
hAIBVrw0UAS8XtH0d/NAH0fAGYD211ZhVGiWcKFqT3MEWRAUHl7W+6iNK1HsPHDu
8qyHmooHlvJLRNhu5z5QRPN2tYEdYOfvzXpNkTK9hizophgFO11BjlP+mv0URMmD
hJnCAHor5NfvtJSQiLP+yDMgfD3hdVQZzRBo4UsmTzEUKk/ZgNZydW3zDuHAtsi+
3brTVOzvAOQrqwWbGUJTQtw8c97o1piCVu795CClOyYvIVJM9/NgX/WkSRQQp6XG
RGMD35UElA23dyGjIHl06qn/mDDzHqGdENC9F7pQqhBUIQGBwAoZYhOahGCVx/6h
MKix1tgOvl0iN1u6fAvSryftKtg4E7lxOjMcFvX2bYMfIcJPau2VvDGYQ1rtZt/f
23F5622Z3xyGsMF+nRo6w4w0S6cJReXuQjcEokyP1Ip8gwHp7amPnPC0li9opANm
ttNqB+tU0obh8aH5hTFAKEaj6a5Y6RvOiUBJzvgu0MjvLtr7QUltVPX/B0QKdBTf
B5KeMwfY+jHpEkdOwoOc
=dl/5
-----END PGP SIGNATURE-----
Reply to: