In the core of apt
Par jd le vendredi, décembre 31 2004, 18:02 - Debian - Lien permanent
Working on apt-build, I had to use apt to manage a lot of things and I can tell you: APT IS A MAZE !
apt-build uses --print-uris option with install and source commands of apt-get, mainly to determine versions. But sometimes you will have an epoch in the deb file but not in the dsc one, another time you will have a source version which is different from the binary one, so you have to use apt-cache and when you want to use the apt-get <command> package=version command line format, you will have a headache if you do not care of what you are doing.
Sure it should use other things that system() calls to apt-get like a Perl lib, but for now... beer time.
Commentaires
Tu as l'air de te réinvestir dans le projet apt-build, et à vrai dire, je t'en félicite. Cependant, juste une question et une remarque (qui seront peut-être superflue, vu que je n'ai pas lu le code du programme) : pourquoi n'utilises-tu pas la librairie perl libapt-pkg-perl ? (elle n'est peut etre pas adaptée à ce que tu souhaites faire). Et dans le cas ou elle n'est pas utile, as tu l'intention de faire une librairie perl pour controler la gestion des paquets ? Je pense qu'une telle librairie serait ***vraiment*** utilisée et très utile ...
Sur ces quelques remarques, bon courage (et bonne année)
> APT IS A MAZE !
Ahah. Just for fun, once, take a look at urpmi (Mandrake package (mis)handling tool), and try not to die from a heart attack: returns 0 for some errors, or sometimes returns the same code for different errors, without even talking about Mandrake package naming scheme, which is a terrible mess. So, you can't complain, you're a lucky man.
Anonymous coward:
When I worked at Mandrakesoft, I had to use URPMI (the Perl lib), and fortunately the original author Francois Pons explained me how it works, because there is no many comments in the source.
So I can compare, and yes apt rox