Re: [Dwai-developers] TODOs
Status: Beta
Brought to you by:
lucrus
|
From: Lash <la...@em...> - 2006-04-01 19:26:22
|
Il giorno Fri, 31 Mar 2006 16:08:12 +0200 Lucio Crusca <lu...@su...> ha scritto: > > why we take the dependecy?? if we install the package with apt! > Of course, but the installation of the package is only the final > step. [...] ok! >=20 > > dpkg -I packagename | grep Depends | cut -d : -f 2 > > or > > dpkg -I packagename | grep Depends | cut -d : -f 2 | cut -d \ -f 1 > > for the first depend package > Is the output of dpkg -l standard enough to rely on that? Don't we > run the risk to have different outputs for different versions of apt? there is an error, packagename is instead packagename.deb. I hope it's standard. > > > What about Java > > No! please > When I wrote the world "Java" I was already suspecting that someone > would have replied this way. Java is there just in case we don't find > anything else and, since I know Java, it would be easy for me to use > that (it has all the necessary XML stuff straight builtin). However I > know C++=20 I don't know java but i don't like it. > I'd be happy to learn Python. i'm too! > > > C++? > > It's my favourite! > What about XML? Do you know which libraries are needed for it? no :( we can use a C library if there'arent c++ libraries > >> 1 - Reading the ar format directly (not that wise in my opinion > >> unless we know the .deb ar format won't change frequently) > >we can do an explode with the : char > I don't know what the : char does, however I guess it extracts the ar=20 > contents. The problem is: how standard are those contents? Can we > rely on them (in particular the dep list) being always the same > between apt versions? explode is a php function that split a string(but we can reproduce it in the language we will use), the : char is an argoument that we can give to this function for split the string returned by apt-cache so we can separete the localized string by the depend. apt-cache depends packagename however don't return the version of a depend if there is. explode function in php: array explode ( string separator, string string [, int limit] ) Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string separator. Bye --=20 Andrea Corradi | Debian User | www.debian.org Fingerprint: A41E F6B0 DBDB F04C 4940 E411 30F3 CD62 57B1 8458 gpg --keyserver keyserver.linux.it --recv-key 57B18458 Please avoid sending me Word or PowerPoint attachments. http://www.gnu.org/philosophy/no-word-attachments.html |