<HTML dir=ltr><HEAD><TITLE>Re: apt-offline SIMPLE web interface</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText93033 dir=ltr>
<DIV dir=ltr><FONT face=Tahoma size=2><B>De:</B> Giacomo A. Catenazzi [mailto:cate@debian.org]<BR><B>Enviado el:</B> lun 21/04/2008 10:35<BR><B>Para:</B> PEDRO MACANAS VALVERDE<BR><B>CC:</B> apt-zip-devel@lists.alioth.debian.org<BR><B>Asunto:</B> Re: apt-offline SIMPLE web interface<BR></FONT><BR><FONT size=2>>Languages are not countries, and some ISO code for language and for<BR>countries doesn't match.<BR>I.e. "eu" is Basque language (ISO 639), but used as Europa union<BR>"country" code ("reserved" in ISO 3166-1).<BR></FONT></DIV></DIV>
<DIV>
<P><FONT size=2>I agree. But a locale is generally a language and a country (this is language + country).</P></FONT><FONT size=2></FONT></DIV>
<DIV><FONT size=2>
<P><BR>>geoip is the right solution, but anyway it is complex to implement,</P>
<P>Provisonally, one can use this JavaScript option, easy to implement, if convenient ;-)</P>
<P>>because we should import from debian the list of mirrors, what part<BR>of archive they mirror (some mirror are not complete: rare,<BR>architectures, not all distributions...), and we should find what<BR>is the nearest mirror of a unknown country.<BR>i.e. what is the nearest mirror of Luxemburg (.lu). There are<BR>250 top level domains, and countries outside Europe could be<BR>very difficult (i.e. very time intensive) to check. On one<BR>of my site, I have people from 80 countries (and territories),<BR>with a lot of unknown islands in southern pacific.<BR><BR>We would begin in some place. This can be later improved ;)</P>
<P><BR>> * The command "apt-offline" (without parameters) would create a<BR>> packagelist.htm file (and rename existing packagelist.htm file to<BR>> packagelistold.htm ).<BR><BR>why an htm file?<BR></P>
<P>Can be manually used (the user can click to download).</P>
<P>>> The user then would download the files and store them in a folder (the name<BR>> of the folder could be standardized by default).<BR>><BR>>> "Apt-offline install foldername" would "apt-get install" all the files in<BR>> folder "foldername".<BR><BR>>yes, like apt-zip<BR></P>
<P>This is a good way.</P>
<P><BR>><BR>> * See <A href="https://help.ubuntu.com/community/SynapticOffline">https://help.ubuntu.com/community/SynapticOffline</A> about "apt-get<BR>> --print-uris".<BR>><BR>> * I would add "License" to the "Sources" header ("License and Sources").<BR>><BR>> * The nowadays only-text web page can be easily used in non-X web-browsers<BR>> (as Lynx). So, as a help when X does not work (the user has to employ the<BR>> console).<BR>><BR>>> A more graphical version can be used also (I would add a Tux).<BR><BR>>I don't understand.</P>
<P>You talked about the website needs more graphics. Be can begin with a Tux image ( <A href="http://en.wikipedia.org/wiki/Tux">http://en.wikipedia.org/wiki/Tux</A> ) or a Debian and Ubuntu logo.</P>
<P><BR>>"apt-offline list" do much better that "apt-get --print-uris":<BR>it distinguish the "suites" (backport, multimedia, volatile, stable,<BR>testing), and allow you to mix the suites, so if you installed<BR>package A from a suite, it will search the updates only on such suite.<BR></P>
<P>I am going to include this information in the wiki page about apt-offline ( <A href="https://help.ubuntu.com/community/AptGet/Offline">https://help.ubuntu.com/community/AptGet/Offline</A> )</P>
<P><BR>>Anyway, I'll do only the back-end and the web interface.<BR>The front end should be done from "Synaptic" or other people<BR>(but only when apt-offline is complete, and it as a stable interface)<BR></P>
<P>We could use some code from <A href="https://help.ubuntu.com/community/Synaptic/PackageDownloadScript">https://help.ubuntu.com/community/Synaptic/PackageDownloadScript</A> </P>
<P>Regards.</P>
<P>Pedro. </P></FONT></DIV></BODY></HTML>