dado que nos fuimos del mundial, te mando pablo un par de programas<br><br>el primero es uno en perl que llama al segundo para ordenar un archivo que contiene una lista de archivos de ututo<br><br>es un ls *.tbz2 efectuado en un /ututo/i686, o sea un repositorio de paquetes<br>
<br>al segundo si le das un argumento lo &quot;canoniza&quot;<br><br>o sea lo transforma en un nombre facilmente separable en sus variables y ordenable<br><br>si le das dos argumentos, un paquete y un canonico los ordena, o sea da 1 si a&gt;b, 0 si son iguales y -1 si a&lt;b<br>
<br>espero te sriva<br><br><br>#!/usr/bin/perl<br><br><br>sub first{<br>�� #my ($data2,$data1)=@_;<br>��� $data1=$a;<br>��� $data2=$b;<br>�� my $pack=`/home/dsa/dsatex/ubuild/scripts/upackname -o ${data2}.can $data1`;<br>
��� #print &quot;/home/dsa/dsatex/ubuild/scripts/upackname -o ${data2}.can $data1&quot;;<br>��� #print &quot;pack:$pack&quot;;<br>�� my ($normresp,$order)=split(/ /,$pack);<br>��� #print &quot;O:$order&quot;;<br>��� return $order+0;<br>
}<br>use Data::Dumper;<br>open(FILE, &quot;/home/dsa/ubtest/listapack&quot;);<br>while(&lt;FILE&gt;){<br><br>��� $count++;<br>��� if ($count&gt;10){last}<br>��� chomp $_;<br>��� $pack=`/home/dsa/dsatex/ubuild/scripts/upackname -o $_`;<br>
��� chomp $pack;<br>��� ($nombre,$version,$release,$system,$ext)=split(/_/,$pack);<br>��� $datos=[$nombre,$version,$release,$system,$ext,$pack,$_];<br>��� print &quot;Pro: $nombre,$version,$release,$system,$ext\n&quot;;<br>
��� $dat-&gt;{$nombre}=[@{$dat-&gt;{$nombre}},$datos];<br>��� $lista-&gt;{$nombre}=[@{$lista-&gt;{$nombre}},$pack];<br>}<br>close(FILE);<br><br>#print&quot;hh&quot;, Dumper $dat;<br><br>foreach my $nombre (keys %$dat){<br>
��� print $nombre,&quot;\n&quot;;<br>��� $datacomp=$dat-&gt;{$nombre}-&gt;[0]-&gt;[5]; <br>���� print &quot; ingresa: @{$lista-&gt;{$nombre}} \n&quot;;� <br>��� @ordenada=sort first @{$lista-&gt;{$nombre}};<br>��� print &quot;ordenada: @ordenada \n&quot;;<br>
��� foreach my $data (@{$dat-&gt;{$nombre}}){<br>������� <br>��� ($n,$v,$r,$s,$e,$p,$o)=@$data;<br><br>������� $pack2=`/home/dsa/dsatex/ubuild/scripts/upackname -o $o $datacomp`;<br>������� #print &quot;BBBB$pack2\n&quot;;<br>
������� ($normresp,$order)=split(/ /,$pack2);<br>������� ($nc,$vc,$rc,$sc,$ec)=split(/_/,$datacomp);<br>��� print &quot;�� $v $r $s $e $p $o \n&quot;;<br>��� print &quot;�� $vc $rc $sc $ec� - $normresp - $datacomp : $order \n&quot;;<br>
<br>#$normresp - $datacomp - $order\n&quot;;<br>��� }<br><br>}<br><br><br>######################################<br><br>#!/bin/bash <br><br>version(){<br>cat &lt;&lt;EOF<br>upackname $PROG_VERSION<br>Copyright (C) 2010 Diego Saravia &lt;<a href="mailto:dsa@unsa.edu.ar">dsa@unsa.edu.ar</a>&gt;<br>
License: $PROG_LICENCE<br>&lt;<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>&gt;<br>EOF<br>}<br><br>help(){<br>cat &lt;&lt;EOF<br>��� upackname PACKAGE <br><br>��� Splits package string in name, version and extension<br>
<br>��� Prints<br>��� PACKSTRING:� Complete file name<br>��� PACKDIR:���� Directories preceding file name<br>��� PACKTYPE:��� NOEXT|UNKNOWNPKGEXT|BINPKGEXT|LISTEXT|METAEXT <br>��� PACKEXT:���� Extension (rpm, deb, ebuild, tbz2, etc)<br>
��� PACKSYSTEM:� i686, x86_64, hurd-i386, etc<br>��� PACKNAME:��� Packname<br>��� PACKVERSION: Complete version<br>��� PACKSV:����� Source Version<br>��� PACKRV:����� Release Version�� <br>��� PACKRVORDER: Release Version in Gentoo transformed for comparisson.� <br>
<br>��� PACKCOMPLETENAME:���������� without extension<br>��� PACKCOMPLETENORMALIZEDNAME: without extension in a normalized fashion<br>EOF<br>}<br><br>usage(){<br>cat &lt;&lt;EOF<br>Usage:<br>��� upackname� PACKAGE<br>EOF<br>
}<br><br>extsep(){<br>�for ext in $2 ; do<br>�� rext=`echo $ext | sed� &#39;s|\.|\\\.|&#39; `<br>�� first=`echo $1 | sed &quot;s/\.$rext\$//&quot;` <br>�� if test &quot;x$first&quot; != &quot;x$1&quot;; then<br>����� PACKEXT=$ext<br>
����� PACKTYPE=$3<br>����� PACKNOEXT=$first<br>����� break<br>�� fi<br>�done<br>}<br><br>PROG_VERSION=0.1<br>PROG_LICENCE=&quot;AGPLv3+: GNU AGPL version 3 or later&quot;<br>oneline=0<br>while test $# -gt 0� ; do<br>������� case &quot;$1&quot; in<br>
��� ��� -h|--help)<br>��������������� help<br>��� ��� ;;<br>��� ��� -v|-V|--version)<br>��� ������� version <br>��������������� ;;<br>����������� -u|--usage)<br>��� ������� usage<br>��� ��� ;;<br>����������� -o|--oneline)<br>
��� ������� oneline=1<br>��� ��� ;;<br>��� ��� *)<br>��������������� FILES=$@<br>��������������� break<br>���� ��� ;;<br>������� esac<br>��� shift<br>done<br><br><br>if test x&quot;$1&quot; = x ; then<br>� usage<br>� exit<br>
fi <br><br><br><br><br><br><br><br><br><br><br>anachar(){<br>local CADENA=$1<br>local char=$2<br><br>�estext=`expr &quot;$char&quot; : &#39;\([a-zA-Z0\.]\)&#39;`<br>�if test x&quot;$estext&quot; != x ; then<br>��� #echo CHAR $char<br>
��� ES=CHAR<br>��� saca=$char<br>��� nume= # no es necesario<br>�� else<br>��� nume=`expr &quot;$CADENA&quot; : &#39;\([0-9]\+\)&#39;`<br>��� if test x&quot;$nume&quot; = x ; then<br>������� saca=$char<br>������� # lo pongo como char<br>
������� #ES=OTHER<br>�������� ES=CHAR<br>������� #echo CHAR OTHER $char<br>������� # es al vicio, solo preguntar por numeros<br>��������� #echo SEPARA $char<br>������� #char=&#39;&#39;<br>������ else<br>�������� #echo NUM� $nume<br>
�������� ES=NUMB<br>�������� saca=$nume<br>��� fi<br>�fi<br><br><br>}<br><br><br># ver caracter ~ en debian<br>order(){<br># returns first as compared to second<br>CADENA1=$1<br>CADENA2=$2<br>#echo 1: $CADENA1 - 2: $CADENA2<br>
<br>while true ; do<br>�char1=${CADENA1:0:1}<br>�char2=${CADENA2:0:1}<br>�#echo CHAR1: $char1 - CHAR2: $char2<br>�if test x&quot;$char1&quot; = x -a� x&quot;$char2&quot; = x ; then<br>� #echo SON IGUALES<br>� ORDER=0<br>� break<br>
�elif test x&quot;$char1&quot; = x -a� x&quot;$char2&quot; != x ; then<br>� #echo CADENA1 PRIMERO T<br>� ORDER=-1<br>� break <br>�elif test x&quot;$char1&quot; != x -a� x&quot;$char2&quot; = x ; then<br>� #echo CADENA2 PRIMERO T<br>
� ORDER=1<br>� break <br>�fi<br><br>�anachar $CADENA1 $char1<br>�CADENA1=${CADENA1#$saca}<br>�ES1=$ES<br>�nume1=$nume<br><br>�anachar $CADENA2 $char2<br>�CADENA2=${CADENA2#$saca}<br>�ES2=$ES<br>�nume2=$nume<br>�#RES=&quot;$ES1 - $ES2 - $char1 - $char2 - $nume1 - $nume2&quot;<br>
<br>�if test x&quot;$ES1&quot; = xNUMB -a x&quot;$ES2&quot; = xNUMB ; then<br>� if test x&quot;$nume1&quot; = x&quot;$nume2&quot; ; then<br>��� #echo continue IGUALES NUMB: $RES<br>��� continue<br>�� elif test $nume1 -gt $nume2; then<br>
��� #echo &quot;CADENA2 PRI 2������� : $RES&quot;<br>��� ORDER=1<br>�� else<br>��� #echo &quot;CADENA1 PRI 2������� : $RES&quot;<br>��� ORDER=-1<br>�� fi<br>� break<br>�<br>�elif test x&quot;$ES1&quot; = xCHAR -a x&quot;$ES2&quot; = xCHAR ; then<br>
� if test x&quot;$char1&quot; = x&quot;$char2&quot; ; then<br>�� #echo continue IGUALES CHAR: $RES<br>�� continue<br>� elif test $char1 &gt; $char2; then<br>��� #echo &quot;CADENA1 PRI 3������� : $RES&quot;<br>��� ORDER=-1<br>
� else<br>��� #echo &quot;CADENA2 PRI 3������� : $RES&quot;<br>��� ORDER=1<br>� fi<br>� break<br><br>elif test x&quot;$ES1&quot; = xCHAR -a x&quot;$ES2&quot; = xNUMB ; then<br>�if test x&quot;$char1&quot; = x0 ; then<br>��� #echo &quot;CADENA1 PRI 4 0����� : $RES&quot;<br>
��� ORDER=-1<br>��� break<br>�� else<br>��� #echo &quot;CADENA2 PRI 4������� : $RES&quot;<br>��� ORDER=1<br>� fi<br>� break <br>elif test x&quot;$ES1&quot; = xNUMB -a x&quot;$ES2&quot; = xCHAR ; then<br>�if test x&quot;$char2&quot; = x0 ; then<br>
��� #echo &quot;CADENA2 PRI 4 0����� : $RES&quot;<br>��� ORDER=1<br>�� else<br>��� #echo &quot;CADENA1 PRI 4������� : $RES&quot;<br>��� ORDER=-1<br>�� fi<br>� break <br>fi<br><br>#echo lll $char - $nume - $EST - $estext - $CADENA1<br>
done<br>}<br><br>#order apo1002300.001.45g.ui67 apo1002300.001.45g.ui68b<br><br>#echo OOO $ORDER<br>#exit<br><br><br>PACK=$1<br>COMPPACK=$2<br><br>#echo NNN $1 JJJ� $2 KKK<br>#PACKSTRING=`basename $PACK`<br>PACKSTRING=`echo $PACK | awk -F/ &#39;{print $NF}&#39;`<br>
PACKDIRPRE=${PACK%${PACKSTRING}} # en dos pasos por si no tiene /<br><br>if test x&quot;$PACKDIRPRE&quot; = x/ ; then<br>� PACKDIR=/ <br>�else<br>� PACKDIR=${PACKDIRPRE%/} <br>fi<br><br># 4 kind: file list (lf), metapacks (ebuild ubuild suma), binary packs, source packs<br>
METAEXT=&quot;ebuild ubuild summa&quot;<br>LISTEXT=&quot;lf can&quot;� <br># esto no es asi, cambiar<br><br>#KNOWN:<br>BINPKGEXT=&quot;tgz tbz2 deb rpm&quot;<br>#SEE:<br>PKGEXT=&quot;tar.gz tgz <a href="http://tar.bz">tar.bz</a> tar.bz2 tbz tbz2 ZIP sip jar gz Z z bz2 bz 7Z 7z RAR rar LHa LHA lha lzh a deb lzma xz rpm&quot;<br>
<br>PACKTYPE=0 # EXIST EXTENSION<br>PACKEXT=&quot;&quot;<br># packtype<br>PACKNAMEVERS=$PACKSTRING<br><br><br>########################################3 test sobre archivos reales, ver que pasa si no se quiere esto<br># o sea proveer <br>
<br><br># basename?<br><br>extsep $PACKSTRING &quot;$BINPKGEXT&quot; BINPKGEXT<br><br>if test x&quot;$PACKEXT&quot; = x ; then<br>�� extsep $PACKSTRING &quot;$LISTEXT&quot; LISTEXT<br>fi<br>if test x&quot;$PACKEXT&quot; = x ; then<br>
�� extsep $PACKSTRING &quot;$METAEXT&quot; METAEXT<br>fi<br><br><br>if test x&quot;$PACKEXT&quot; = x ; then<br>� PACKEXT=`echo $PACKSTRING | awk -F. &#39;{print $NF}&#39;`<br>� PACKNOEXT=${PACKSTRING%.${PACKEXT}}<br>� PACKTYPE=UNKNOWNPKGEXT<br>
fi<br>if test x&quot;$PACKEXT&quot; = x ; then<br>��� PACKNOEXT=$PACKSTRING<br>��� PACKTYPE=NOEXT<br>fi<br><br><br>#echo mmmmmmmmmmmmmmm $PACKEXT<br>PACKERROR=&#39;&#39;<br><br><br>case $PACKEXT in<br>can)<br>� `echo $PACKNOEXT| sed &#39;s/\(.*\)_\(.*\)_\(.*\)_\(.*\)_\(.*\)$/export PACKNAME\=\1 PACKSV\=\2 PACKRVORDER\=\3 PACKSYSTEM\=\4 PACKEXT\=\5&#39;/`<br>
<br>#echo CAN $PACKNAME $PACKSV $PACKRVORDER $PACKEXT<br>;;<br>ebuild|ubuild|tbz2)<br># en build info o ebuild� no parece haber info sobre nombre o version<br><br>��� #<a href="http://distfiles.gentoo.org/distfiles/pms-3.pdf">http://distfiles.gentoo.org/distfiles/pms-3.pdf</a><br>
<br>��� `echo $PACKNOEXT | sed -e &#39;s/\(.*\)-\(\([[:digit:]]\+\(\.[[:digit:]]\+\)*\+[a-z]\?\)\(\(_\(alpha\|beta\|pre\|rc\|p\)[[:digit:]]*\)*\(-r\([[:digit:]]\+\)\)\?\)\)$/export PACKNAME=\1 PACKVERSION=\2 PACKSV=\3 PACKRVPRE=\5 PACKGENTOOPRE=\6 PACKGENTOORE=\8 PACKGENTOORENUM=\9/&#39;`<br>
<br>if test x&quot;$PACKNAME&quot; = x ; then<br>��� echo ERROR, NO ES UN ARCHIVO GENTOO<br>��� PACKERROR=&quot;No es Gentoo&quot;<br>fi<br><br>if test x&quot;$PACKGENTOOPRE&quot; = x ; then<br>� #PACKRV=${PACKRVPRE#-} # no porque a veces debbiera agregar _ y otras -<br>
�PACKSRORDER=5<br>�else<br>� #PACKRV=$PACKRVPRE<br>�PACKSRORDERPRE=`echo $PACKGENTOOPRE| sed -r -e &quot;s/_alpha/1./&quot; \<br>�-e &quot;s/_beta/2./&quot; \<br>�-e &quot;s/_pre/3./&quot; \<br>�-e &quot;s/_rc/4./&quot; \<br>
�-e &quot;s/_p/6./&quot; `<br><br>�PACKSRORDER=`echo $PACKSRORDERPRE| sed� -e &#39;s/\.$//&#39; `<br><br>fi<br><br>PACKRV=$PACKRVPRE<br><br>if test x&quot;$PACKGENTOORE&quot; = x ; then<br>��� PACKRVORDER=$PACKSRORDER.0<br>
� else<br>��� PACKRVORDER=$PACKSRORDER.$PACKGENTOORENUM<br>fi<br><br>#echo bbbbbbbbbbbbbbb $PACKGENTOOPRE� $PACKGENTOORE - $PACKGENTOORENUM - $PACKSRORDER -� $PACKSRORDERPRE<br><br><br>��� #PACKNAME=sed -e &#39;s/(.*\)\(-[[:digit:]]\+\(\.[[:digit:]]\+\)*\+[a-z]\?\(_\(alpha\|beta\|pre\|rc\|p\)[[:digit:]]*\)*\(-r[[:digit:]]\+\)\?\)$//&#39;`<br>
��� #PACKVERSION=`echo $PACK|cut -d- -f2-`<br>��� #if test x&quot;$PACKVERSION&quot; =� x&quot;$PACKNAME&quot; ; then� # esto es raro,<br>��� #��� PACKVERSION=&#39;&#39;<br>��� #��� # que el cut ponga el primer campo si no hay segundo ver<br>
��� #��� #PACKVERSION=0<br>��� # fi<br><br>��� #sed &#39;s/-[0-9]\{1,\}.*$//&#39;<br>��� ;;<br><br>#Ebuild file names consist of four logical subsections:<br><br>#pkg-ver{_suf{#}}{-r#}.ebuild<br><br>#Note: The brackets ({}) delineate optional fields and do not appear in the literal package name. # represents any non-zero positive integer.<br>
<br>#The first subsection, pkg, is the package name, which should only contain lowercase letters, the digits 0-9, and any number of single hyphen (-), underscore (_) or plus (+) characters. Examples: util-linux, sysklogd and gtk+. We have some packages in Portage that don&#39;t follow these rules, but your packages should.<br>
<br>#The second subsection, ver, is the version of the package, which should normally be same as the version on the main source tarball. The version is normally made up of two or three (or more) numbers separated by periods, such as 1.2 or 4.5.2, and may have a single letter immediately following the last digit; e.g., 1.4b or 2.6h. The package version is joined to the package name with a hyphen. For example: foo-1.0, bar-2.4.6.<br>
<br>#Important: If you&#39;re thinking of using a trailing letter in your version string, note that the trailing letter should not be used to signify alpha or beta status for the package, since alphas and betas are prereleases and letter revisions are newer versions. This is an important distinction because Portage uses an ebuild&#39;s version number to determine if it is newer or older than other packages with the same category and name. It&#39;s very important that version numbers faithfully represent the version of the package so that Portage properly performs its dependency checking duties.<br>
<br>#The third subsection, {_suf{#}}, is optional and may contain one of these predefined suffixes, listed in least-recent to most-recent order:<br>#Suffix ��� Meaning<br>#_alpha ��� Alpha release<br>#_beta ��� Beta release<br>
#_pre ��� Prerelease<br>#_rc ��� Release candidate<br>#(none) ��� Normal release<br>#_p ��� Patch level (normally accompanied by trailing integer)<br><br>#Any of these suffixes may be immediately followed by a non-zero positive integer, e.g., linux-2.4.0_pre10. Assuming identical version parts, the suffixes are ordered as follows (lower means older): _alpha &lt; _beta &lt; _pre &lt; _rc &lt; (no suffix) &lt; _p.<br>
<br>#When comparing identical suffixes with trailing integers, the one with the larger integer will be considered most recent. Example: foo-1.0_alpha4 is more recent than foo-1.0_alpha3.<br><br>#The fourth subsection of the package name is the Gentoo Linux-specific revision number ({-r#}). This subsection, like the suffix, is also optional. # is a non-zero positive integer; e.g., package-4.5.3-r3.<br>
<br>#This revision number is independent of the version of the source tarball and is used to inform people that a new and improved Gentoo Linux revision of a particular package is available. Initial releases of ebuilds must have no revision number; e.g., package-4.5.3 and are considered by Portage to have a revision number of zero. This means that counting goes as follows: 1.0 (initial version), 1.0-r1, 1.0-r2, etc.<br>
<br>#If you make non-trivial improvements to an existing ebuild file, you should copy the ebuild file to a new file with the revision number incremented by 1. Remember to always make mentions of your changes in the ChangeLog when you bump a revision and in your CVS commit message; not doing so is against policy.<br>
<br>#... and I suppose that we actually have a fifth section of the ebuild name as well -- the .ebuild extension itself. <br><br>rpm)<br># spec si hay nombre, version y release, verificar que esto funcione bien al abrir cada paquete<br>
<br>#��� PACKNAME=`echo $PACKNOEXT |sed &#39;s/-[^-]*-[^-]*$//&#39;`<br>��� PACKNAME=`echo $PACKNOEXT |sed &#39;s/-[^-]*-.*$//&#39;`<br>��� PACKVERSIONPRE=${PACKNOEXT#${PACKNAME}} # primero el nombre por si es todo<br>��� PACKVERSIONSYS=${PACKVERSIONPRE#-} <br>
<br>if test x&quot;$PACKNAME&quot; = x ; then<br>��� echo ERROR, NO ES UN ARCHIVO RPM<br>��� PACKERROR=&quot;No es RPM&quot;<br>fi<br><br><br>PACKVERSION=`echo $PACKVERSIONSYS | sed &#39;s/\.\(\(darwin\|freebsd\|netbsd\|kfreebsd\|knetbsd\|openbsd\|hurd\|gnu\|linux\)-\)\?\(noarch\|src\|i486\|i586\|i686\|athlon\|ppc\|x86_64\|i386\|ia64\|alpha\|amd64\|armeb\|arm\|hppa\|m32r\|m68k\|mips\|mipsel\|powerpc\|ppc64\|s390\|s390x\|sh3\|sh3eb\|sh4\|sh4eb\|sparc\)$//&#39;`<br>
��� PACKSYSTEMPRE=${PACKVERSIONSYS#${PACKVERSION}} # primero el nombre por si es todo<br>��� PACKSYSTEM=${PACKSYSTEMPRE#.} <br><br>��� PACKNOSYSTEM=$PACKNAME-$PACKVERSION<br><br>��� `echo $PACKVERSION| sed &#39;s/\([^-]*\)-\(.*\)$/export PACKSV\=\1 PACKRV\=\2/&#39;`<br>
<br><br><br><br><br><br>#��� echo KKKK $PACKSV�� KKKKK $PACKSYSTEM KKKKKK $PACKRV<br><br><br><br>��� # `echo $PACKNOEXT | sed -e &#39;s/\([a-zA-Z0-9_\-\+]*\)-\([a-zA-Z0-9_\.]*\)-\([a-zA-Z0-9_\.]*\)\.\(noarch\|src\|i386\|i686\|athlon\|ppc\|x86_64\)$/export PACKNAME\=&quot;\1&quot;� PACKVERSION\=&quot;\2-\3.\4&quot;� PACKOV\=&quot;\2&quot; PACKRV\=&quot;\3&quot; PACKARCH\=&quot;\4&quot;/&#39;`<br>
<br>��� #older systems do not have arch part, see<br>��� #������� my $name = $1;<br>��� #������� my $version = $2;<br>��� #������� my $release = $3;<br>��� #������� my $arch = $4;<br><br>��� #$ rpm -qp --qf &#39;%{NAME}&#39; some.rpm<br>
<br>��� #rpm -qa|sed &#39;s/-[^-]*-[^-]*$//&#39;<br><br>��� #RPM &lt;name&gt;-&lt;version&gt;-&lt;release&gt;.&lt;architecture&gt;.rpm nano-0.98-2.i386.rpm� libgnomeuimm-2.0-2.0.0-3.src.rpm<br><br>��� #A package label is contained within the file and does not necessarily<br>
��� #need to match the name of the file.<br><br>��� #Additionally, libraries are distributed in two separate packages for<br>��� #each version. One contains the precompiled code, while the second one<br>��� #contains the development files such as headers, static library files,<br>
��� #etc. for the library in question. Those packages have &quot;-devel&quot; appended to their name field. Users need to carefully check so that<br>��� #the version of the development package matches that of the binary<br>
��� #package, otherwise the library may not work very well.<br>��� ;;<br><br>deb)<br><br># en control parece haber info sobre el nombre, no sobre las versiones, usar para verificar<br><br>��� #DEB� &lt;foo&gt;_&lt;VersionNumber&gt;-&lt;DebianRevisionNumber&gt;_&lt;DebianArchitecture&gt;.deb<br>
<br>��� PACKNAME=`echo $PACKNOEXT | awk -F_ &#39;{print $1}&#39;`<br>��� PACKVERSIONSYSPRE=${PACKNOEXT#${PACKNAME}}� # en dos pasos por si el nombre debian esta mal y no usa _<br>��� PACKVERSIONSYS=${PACKVERSIONSYSPRE#_}<br>
<br>if test x&quot;$PACKNAME&quot; = x ; then<br>��� echo ERROR, NO ES UN ARCHIVO DEB<br>��� PACKERROR=&quot;No es deb&quot;<br>fi<br><br>��� #echo MMMMM $PACKVERSION<br>��� #igual que el rpm con _ en vez de .<br>��� PACKVERSION=`echo $PACKVERSIONSYS | sed &#39;s/_\(\(darwin\|freebsd\|netbsd\|kfreebsd\|knetbsd\|openbsd\|hurd\|gnu\|linux\)-\)\?\(noarch\|src\|i486\|i586\|i686\|athlon\|ppc\|x86_64\|i386\|ia64\|alpha\|amd64\|armeb\|arm\|hppa\|m32r\|m68k\|mips\|mipsel\|powerpc\|ppc64\|s390\|s390x\|sh3\|sh3eb\|sh4\|sh4eb\|sparc\)$//&#39;`<br>
<br>if test x&quot;$PACKVERSION&quot; = x ; then<br>��� echo ERROR, NO ES UN ARCHIVO DEB<br>��� PACKERROR=&quot;No es deb&quot;<br>fi<br><br>��� PACKNOSYSTEM=$PACKNAME_$PACKVERSION<br>� echo MMMMM $PACKVERSION� - $PACKNOSYSTEM<br>
��� PACKSYSTEMPRE=${PACKVERSIONSYS#${PACKVERSION}} # primero el nombre por si es todo<br>��� PACKSYSTEM=${PACKSYSTEMPRE#_} <br><br>��� `echo $PACKVERSION| sed &#39;s/\([^-]*\)-\(.*\)$/export PACKSV\=\1 PACKRV\=\2/&#39;`<br>
<br>if test x&quot;$PACKSV&quot; = x ; then<br>��� echo ERROR, NO ES UN ARCHIVO DEB<br>��� PACKERROR=&quot;No es deb&quot;<br>fi<br><br>��� # echo KKKK $PACKSV�� KKKKK $PACKSYSTEM KKKKKK $PACKRV KKKK $PACKNOSYSTEM<br><br>
���� #\([a-z][a-z0-9\+\-\.]+\)_\([a-zA-Z0-9_\.]*\)-\([0-9a-zA-Z\+\.\~]+\)_\(noarch\|src\|noarch\|i386\|i686\|athlon\|ppc\|x86_64\)<br><br>���� #The name of the package itself (not the filename, just the name of the package) can contain lowercase letters, numbers, and the &quot;-&quot; and &quot;+&quot; characters.<br>
���� #debian_revision<br><br>���� #This part of the version number specifies the version of the Debian package based on the upstream version.<br>���� #It may contain only alphanumerics and the characters + . ~ (plus, full stop, tilde) and is compared in the same way as the upstream_version is.<br>
���� #It is optional; if it isn&#39;t present then the upstream_version may not contain a hyphen. <br>���� #This format represents the case where a piece of software was written specifically to be turned into a Debian package, <br>
���� #and so there is only one &quot;debianisation&quot; of it and therefore no revision indication is required.<br>���� #It is conventional to restart the debian_revision at 1 each time the upstream_version is increased.<br>
���� #The package management system will break the version number apart at the last hyphen in the string <br>���� #(if there is one) to determine the upstream_version and debian_revision. The absence of a debian_revision is equivalent to a debian_revision of 0<br>
<br>���� #The VVV component is the version number specified by the upstream<br>���� #developer. There are no standards in place here, so the version number<br>���� #may have formats as different as &quot;19990513&quot; and &quot;1.3.8pre1&quot;.<br>
<br>���� #The RRR component is the Debian revision number, and is specified by<br>���� #the Debian developer (or an individual user if he chooses to build the<br>���� #package himself). This number corresponds to the revision level of the<br>
���� #Debian package, thus, a new revision level usually signifies changes<br>���� #in the Debian Makefile (debian/rules), the Debian control file<br>���� #(debian/control), the installation or removal scripts (debian/p*), or<br>
���� #in the configuration files used with the package.<br><br>���� #The AAA component identifies the processor for which the package was<br>���� #built. This is commonly i386, which refers to chips compatible to<br>���� #Intel&#39;s 386 or later versions. For other possibilities review Debian&#39;s<br>
���� #FTP directory structure at What are all those directories at the<br>���� #Debian FTP archives?, Section 6.7. For details, see the description of<br>���� #&quot;Debian architecture&quot; in the manual page dpkg-architecture(1).<br>
<br>���� #<br><br>���� #i386 ia64 alpha amd64 armeb arm hppa m32r m68k mips mipsel powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc darwin-i386 darwin-ia64 darwin-alpha darwin-amd64 darwin-armeb darwin-arm darwin-hppa darwin-m32r darwin-m68k darwin-mips darwin-mipsel darwin-powerpc darwin-ppc64 darwin-s390 darwin-s390x darwin-sh3 darwin-sh3eb darwin-sh4 darwin-sh4eb darwin-sparc freebsd-i386 freebsd-ia64 freebsd-alpha freebsd-amd64 freebsd-armeb freebsd-arm freebsd-hppa freebsd-m32r freebsd-m68k freebsd-mips freebsd-mipsel freebsd-powerpc freebsd-ppc64 freebsd-s390 freebsd-s390x freebsd-sh3 freebsd-sh3eb freebsd-sh4 freebsd-sh4eb freebsd-sparc kfreebsd-i386 kfreebsd-ia64 kfreebsd-alpha kfreebsd-amd64 kfreebsd-armeb kfreebsd-arm kfreebsd-hppa kfreebsd-m32r kfreebsd-m68k kfreebsd-mips kfreebsd-mipsel kfreebsd-powerpc kfreebsd-ppc64 kfreebsd-s390 kfreebsd-s390x kfreebsd-sh3 kfreebsd-sh3eb kfreebsd-sh4 kfreebsd-sh4eb kfreebsd-sparc knetbsd-i386 knetbsd-ia64 knetbsd-alpha knetbsd-amd64 knetbsd-armeb knetbsd-arm knetbsd-hppa knetbsd-m32r knetbsd-m68k knetbsd-mips knetbsd-mipsel knetbsd-powerpc knetbsd-ppc64 knetbsd-s390 knetbsd-s390x knetbsd-sh3 knetbsd-sh3eb knetbsd-sh4 knetbsd-sh4eb knetbsd-sparc netbsd-i386 netbsd-ia64 netbsd-alpha netbsd-amd64 netbsd-armeb netbsd-arm netbsd-hppa netbsd-m32r netbsd-m68k netbsd-mips netbsd-mipsel netbsd-powerpc netbsd-ppc64 netbsd-s390 netbsd-s390x netbsd-sh3 netbsd-sh3eb netbsd-sh4 netbsd-sh4eb netbsd-sparc openbsd-i386 openbsd-ia64 openbsd-alpha openbsd-amd64 openbsd-armeb openbsd-arm openbsd-hppa openbsd-m32r openbsd-m68k openbsd-mips openbsd-mipsel openbsd-powerpc openbsd-ppc64 openbsd-s390 openbsd-s390x openbsd-sh3 openbsd-sh3eb openbsd-sh4 openbsd-sh4eb openbsd-sparc hurd-i386 hurd-ia64 hurd-alpha hurd-amd64 hurd-armeb hurd-arm hurd-hppa hurd-m32r hurd-m68k hurd-mips hurd-mipsel hurd-powerpc hurd-ppc64 hurd-s390 hurd-s390x hurd-sh3 hurd-sh3eb hurd-sh4 hurd-sh4eb hurd-sparc ;;<br>
<br><br><br>��� ;;<br><br>esac<br>#\(\(darwin\|freebsd\|netbsd\|kfreebsd\|knetbsd\|openbsd\|hurd\|gnu\|linux\)-\)\?<br>### aqui seguro tenemos PACKNOEXT<br><br>## si no tenemos PACKNOSYSTEM lo buscamos<br>if test x&quot;$PACKSYSTEM&quot; = x ; then<br>
��� PACKNOSYSTEM=`echo $PACKNOEXT | sed &#39;s/[\._-]\(noarch\|src\|i486\|i586\|i686\|athlon\|ppc\|x86_64\|i386\|ia64\|alpha\|amd64\|armeb\|arm\|hppa\|m32r\|m68k\|mips\|mipsel\|powerpc\|ppc64\|s390\|s390x\|sh3\|sh3eb\|sh4\|sh4eb\|sparc\)$//&#39;`<br>
<br># if apears something identifing origin as ubuntu, ututo, pacman etc must be extracted here<br><br><br><br>#echo MMMM $PACKNAME - $PACKNOSYSTEM -$PACKNOEXT<br>��� PACKSYSTEMPRE=${PACKNOEXT#${PACKNOSYSTEM}} # primero el nombre por si es todo<br>
��� PACKSYSTEMPRE3=${PACKSYSTEMPRE#-} <br>��� PACKSYSTEMPRE2=${PACKSYSTEMPRE3#_} <br>��� PACKSYSTEM=${PACKSYSTEMPRE2#.} <br><br><br>fi<br><br>if test x&quot;$PACKNOSYSTEM&quot; = x ; then<br>�� PACKNOSYSTEM=$PACKNOEXT<br>
fi<br><br># aqui seguro tenemos PACKNOSYSTEM<br># si no tenemos PACKVERSION (PACKNONAME) lo buscamos<br>�<br>#echo MMMM $PACKNAME - $PACKNOSYSTEM -$PACKNOEXT<br><br><br>if test x&quot;$PACKNAME&quot; = x ; then<br>�� PACKVERSION=`echo $PACKNOSYSTEM | awk -F- &#39;{print $NF}&#39;`<br>
��� if test x&quot;$PACKVERSION&quot; = x&quot;$PACKNOSYSTEM&quot; ; then<br>������ PACKVERSION=&#39;&#39;<br>��� fi<br>��� PACKNAMEPRE=${PACKNOSYSTEM%${PACKVERSION}} # en dos pasos por si no tiene -<br>��� PACKNAME=${PACKNAMEPRE%-} <br>
<br>#echo MMMM $PACKNAME<br>fi<br><br>## si no conseguimos una PACKNAME diferente la buscamos de nuevo<br>if test x&quot;$PACKNAME&quot; = x&quot;$PACKNOSYSTEM&quot; ; then<br>�� PACKVERSION=`echo $PACKNOSYSTEM | awk -F- &#39;{print $NF}&#39;`<br>
��� if test x&quot;$PACKVERSION&quot; = x&quot;$PACKNOSYSTEM&quot; ; then<br>������ PACKVERSION=&#39;&#39;<br>��� fi<br>��� PACKNAMEPRE=${PACKNOSYSTEM%${PACKVERSION}} # en dos pasos por si no tiene -<br>��� PACKNAME=${PACKNAMEPRE%_} <br>
fi<br><br>#echo MMM $PACKSV<br>if test x&quot;$PACKSV&quot; = x -a x&quot;$PACKVERSION&quot; != x ; then<br><br>��� PACKRV=&#39;&#39;<br>��� PACKSV=`echo $PACKVERSION| sed &#39;s/_\(.*\)$//&#39;`��� <br>��� if test x&quot;$PACKVERSION&quot; = x&quot;$PACKSV&quot; ; then<br>
������� ### PACKSV=&#39;&#39; # no better to have this as VERSION if not RV<br>������� :<br>������ else<br>������� PACKRVPRE=${PACKVERSION%$PACKSV}<br>������� PACKRV=${PACKRVPRE%$_}<br>��� fi<br><br>fi<br><br>if test x&quot;$PACKRVORDER&quot; = x ; then<br>
���� PACKRVORDER=$PACKRV<br>fi<br><br><br>SLASH=_<br>#if test x&quot;$PACKSV&quot; = x ; then<br>#�� SLASH=&#39;&#39;<br>#fi<br>SSLASH=_<br>#if test x&quot;$PACKRVORDER&quot; = x ; then<br>#�� SSLASH=&#39;&#39;<br>#fi<br>
PACKCOMPLETENORMALIZEDNAME=&quot;$PACKNAME$SLASH$PACKSV$SSLASH${PACKRVORDER}_${PACKSYSTEM}_$PACKEXT&quot;<br><br>if test x&quot;$COMPPACK&quot; != x ; then<br>��� `echo $COMPPACK| sed &#39;s/\(.*\)_\(.*\)_\(.*\)_\(.*\)_\(.*\)$/export COMPPN\=\1 COMPPV\=\2 COMPPR\=\3 COMPPS\=\4 COMPPE\=\5&#39;/`<br>
<br>#echo COMP $COMPPV� - $COMPPR <br>#echo PACK $PACKSV - $PACKRVORDER<br><br>order ${PACKSV}_$PACKRVORDER ${COMPPV}_$COMPPR<br><br>fi<br><br><br>if test x&quot;$oneline&quot; = x0 ; then <br><br>echo &quot;PACKSTRING=&#39;$PACKSTRING&#39;&quot;<br>
echo &quot;PACKDIR=&#39;$PACKDIR&#39;&quot;<br>echo &quot;PACKNAME=&#39;$PACKNAME&#39;&quot;<br>echo &quot;PACKVERSION=&#39;$PACKVERSION&#39;&quot; #version and release<br># no: si no hay version , version debe ser 0<br>echo &quot;PACKEXT=&#39;$PACKEXT&#39;&quot;<br>
echo &quot;PACKTYPE=&#39;$PACKTYPE&#39;&quot;<br>echo &quot;PACKCOMPLETENAME=&#39;$PACKNOSYSTEM&#39;&quot; # without extension<br><br><br>echo &quot;PACKSYSTEM=&#39;$PACKSYSTEM&#39;&quot;<br>echo &quot;PACKSV=&#39;$PACKSV&#39;&quot;<br>
echo &quot;PACKRV=&#39;$PACKRV&#39;&quot;<br>echo &quot;PACKERROR=&#39;$PACKERROR&#39;&quot;<br>echo &quot;PACKRVORDER=&#39;$PACKRVORDER&#39;&quot;<br><br>echo &quot;PACKCOMPLETENORMALIZEDNAME=&#39;$PACKCOMPLETENORMALIZEDNAME&#39;&quot; # without extension<br>
echo &quot;ORDER=&#39;$ORDER&#39;&quot;<br>echo &quot;COMPPN=&#39;$COMPPN&#39;&quot;<br>echo &quot;COMPPV=&#39;$COMPPV&#39;&quot;<br>echo &quot;COMPPR=&#39;$COMPPR&#39;&quot;<br>echo &quot;COMPPS=&#39;$COMPPS&#39;&quot;<br>
echo &quot;COMPPE=&#39;$COMPPE&#39;&quot;<br>else<br><br>#echo &quot;$PACKNAME:$PACKSV:$PACKRVORDER:$PACKTYPE&quot;<br>�if test x&quot;$ORDER&quot; != x ; then<br>�� echo &quot;$PACKCOMPLETENORMALIZEDNAME $ORDER&quot;<br>
� else<br>�� echo &quot;$PACKCOMPLETENORMALIZEDNAME&quot;<br>�fi<br>fi<br><br><br><br><br><br>#No me fije en otros sistemas, pero los paquetes versionados al estilo<br>#gentoo tiene una dificultad cuando corresponden a releases,<br>
#prereleases, betas, etc. Salvo por eso, se ordenar�an f�cilmente con<br>#ls -v , que compara versiones num�ricas en los nombres de archivos.<br>#Pero cuando las versiones son cosas como paquete-0.3.7-alpha1 y<br>#paquete-0.3.7 all� falla.<br>
<br>#Lo que hice para resolver eso es previamente hacer una lista de los<br>#archivos a ordenar, en la lista reemplazar esas cosas por n�meros,<br>#para que el ls los pueda ordenar, as�:<br><br>#sed -r -e &quot;s/(-[0-9.]+)_alpha/\1_000_/&quot; \<br>
# -e &quot;s/(-[0-9.]+)_beta/\1_001_/&quot; \<br># -e &quot;s/(-[0-9.]+)_pre/\1_002_/&quot; \<br># -e &quot;s/(-[0-9.]+)_rc/\1_003_/&quot; \<br># -e &quot;s/(-[0-9.]+)_p/\1_004_/&quot;)<br>#On Sunday 07 September 2008 08:28:11 Jim Meyering wrote:<br>
#&gt; IMHO, changing sort -V to produce more intuitively-correct results<br>#&gt; is the way to go.<br>#&gt;<br>#&gt; With ls -v, I&#39;m willing to make the change as well, *assuming*<br>#&gt; no one produces a counterargument.<br>
#&gt;<br>#&gt; The question is what ordering function to use.<br>#&gt; The more generally-useful the better.� i.e., I hope<br>#&gt; it can be compatible with both the rpm and deb version sorters.<br>#I made an investigation of existing functions which sort version strings:<br>
#strverscmp - from glibc (now with its equivalent in gnulib)<br>#rpmvercmp - from rpm<br>#ververcmp - from dpkg##<br><br>#The main problem of all these functions is dealing with suffixes. So I<br>#modified them to drop the suffixes. So it is 6 implementations together (3<br>
#original + 3 modified).<br><br>#Then I ran a few series of tests with all implementations. I think the<br>#modified version of ververcmp (from dpkg) gives the best results - consider<br>#attached results of an example - results.tar.bz2#<br>
<br>#So I propose a new function filevercmp (attachment filevercmp.c) as the<br>#predicate function for new sort --version-sort.<br><br>#In the attachment is also the whole &quot;testing framework&quot; which I used to<br>
#compare these functions - strverscmp.tar.bz2 - follow the steps in README<br>#inside archive. It is developed a bit quickly but I hope it could be<br>#useful :-)#<br><br><br>#Kamil <br>#<a href="http://www.opensubscriber.com/message/bug-coreutils@gnu.org/10201323.html">http://www.opensubscriber.com/message/bug-coreutils@gnu.org/10201323.html</a><br>
<br>#<a href="http://old.nabble.com/Possible-bug-in-sort--V-td26804985.html">http://old.nabble.com/Possible-bug-in-sort--V-td26804985.html</a><br><br>#&gt; cat a | /build/toolchain/lin32/coreutils-8.2/bin/sort -V<br>#&gt; kernel-2.6.18-164.2.1.el5.x86_64.rpm<br>
#&gt; kernel-2.6.18-164.6.1.el5.x86_64.rpm<br>#&gt; kernel-2.6.18-164.el5.x86_64.rpm<br>#&gt;<br>#&gt; The result should be<br>#&gt; kernel-2.6.18-164.el5.x86_64.rpm<br>#&gt; kernel-2.6.18-164.2.1.el5.x86_64.rpm<br>#&gt; kernel-2.6.18-164.6.1.el5.x86_64.rpm<br>
#&gt;<br>#&gt; Is it a bug is sort -V?<br><br><br>#I agree the behavior is pretty awkward. Nevertheless the behavior<br>#is well documented:<br><br>#<a href="http://www.gnu.org/software/coreutils/manual/html_node/Details-about-version-sort.html">http://www.gnu.org/software/coreutils/manual/html_node/Details-about-version-sort.html</a><br>
<br>#The &quot;bug&quot; is triggered by the underscore in &quot;x86_64&quot;. It&#39;s not treated as file<br>#suffix in that case. However it works fairly well when you replace &quot;x86_64&quot; by<br>#&quot;i686&quot;.<br>
#From 3069d50b766a2db8b86406904b7327e5de5e315f Mon Sep 17 00:00:00 2001<br>#From: =?utf-8?q?P=C3=A1draig=20Brady?= &lt;P@...&gt;<br>#Date: Thu, 17 Dec 2009 10:48:54 +0000<br>#Subject: [PATCH] doc: enhance and reference info about version comparison<br>
<br>#* doc/coreutils.texi (sort invocation): Reference the additional<br>#info about filevercmp rather than the unused strverscmp.<br>#(Details about version sort): Add some examples that are not<br>#handled well by fileversmp.<br>
#* src/ls.c: Change a comment referencing the now unused strverscmp.<br>#---<br># doc/coreutils.texi |�� 33 ++++++++++++++++++++++++---------<br># src/ls.c���������� |��� 2 +-<br># 2 files changed, 25 insertions(+), 10 deletions(-)<br>
<br>#-This functionality is implemented using gnulib&#39;s @code{filevercmp} function.<br>#-One result of that implementation decision is that @samp{ls -v}<br>#-and @samp{sort -V} do not use the locale category, @env{LC_COLLATE},<br>
#-which means non-numeric prefixes are sorted as if @env{LC_COLLATE} were set<br>#-to @samp{C}.<br>#+This functionality is implemented using gnulib&#39;s @code{filevercmp} function,<br>#+which has some caveats worth noting.<br>
#+<br>#+@itemize @bullet<br>#+@item @env{LC_COLLATE} is ignored, which means @samp{ls -v} and @samp{sort -V}<br>#+will sort non-numeric prefixes as if the @env{LC_COLLATE} locale category<br>#+was set to @samp{C}.<br>#+@item Some suffixes will not be matched by the regular<br>
#+expression mentioned above.� Consequently these examples may<br>#+not sort as you expect:<br>#+<br>#+@example<br>#+abc-1.2.3.4.7z<br>#+abc-1.2.3.7z<br>#+@end example<br>#+<br>#+@example<br>#+abc-1.2.3.4.x86_64.rpm<br>#+abc-1.2.3.x86_64.rpm<br>
#+@end example<br>#+@end itemize<br>�<br># @node General output formatting<br># @subsection General output formatting<br>#diff --git a/src/ls.c b/src/ls.c<br>#index aeaa584..5c7f6aa 100644<br>#--- a/src/ls.c<br>#+++ b/src/ls.c<br>
#@@ -3272,7 +3272,7 @@ DEFINE_SORT_FUNCTIONS (extension, cmp_extension)<br>#��� All the other sort options, in fact, need xstrcoll and strcmp variants,<br>#��� because they all use a string comparison (either as the primary or secondary<br>
#��� sort key), and xstrcoll has the ability to do a longjmp if strcoll fails for<br>#-�� locale reasons.� Last, strverscmp is ALWAYS available in coreutils,<br>#+�� locale reasons.� Last, filevercmp is ALWAYS available in coreutils,<br>
#��� thanks to the gnulib library. */<br># static inline int<br># cmp_version (struct fileinfo const *a, struct fileinfo const *b)<br>#-- <br>#1.6.2.5<br><br>#como compilar a partir de un ebuild, de un spec y de un control<br>
#category no esta en ebuild, si en ubuild<br><br>#<a href="http://www.redhat.com/archives/rpm-list/2003-January/msg00006.html">http://www.redhat.com/archives/rpm-list/2003-January/msg00006.html</a><br><br><br><br><br><br>
<br><br><br><br>#RES1=`echo &quot;.$CADENA1&quot; |sed -e &#39;s/[^0-9a-zA-Z]\+/./g&#39;| sed -e &#39;s/\([a-zA-Z]\+\)/\1:./g&#39; | sed -e &#39;s/\([0-9]\+\)/\1;./g&#39; | sed -e &#39;s/.\([0]\+\)/.\1:./g&#39;`<br>#RES2=`echo &quot;.$CADENA2&quot; |sed -e &#39;s/[^0-9a-zA-Z]\+/./g&#39;| sed -e &#39;s/\([a-zA-Z]\+\)/\1:./g&#39; | sed -e &#39;s/\([0-9]\+\)/\1;./g&#39; | sed -e &#39;s/.\([0]\+\)/.\1:./g&#39;`<br>
#echo $RES1<br>#echo $RES2<br><br>#FIN=0<br>##IFS=.<br><br><br>�<br><br><br>#RES1=${RES1#.}<br>#RES2=${RES2#.}<br>#coma=`echo &quot;$RES1&quot; |sed -e &#39;s/\..\+$//&#39;`<br>#RES1=${RES1#$coma}<br><br>#comb=`echo &quot;$RES2&quot; |sed -e &#39;s/\..\+$//&#39;`<br>
#RES2=${RES2#$comb}<br><br>#echo $coma $comb - $RES1 $RES2<br>#if test x&quot;$coma&quot; != x&quot;$comb&quot; ; then<br>#�� echo SON DISTINTOS $coma $comb<br>#�� FIN=1<br>#fi#<br><br>#if test x&quot;$RES1&quot; = x -o x&quot;$RES2&quot; = x� ; then<br>
# echo junto termino: $coma - $comb<br>#�� FIN=1<br>#fi<br>#bbb=s<br>#<br># if test x&quot;$item&quot; != x; then <br># echo $item<br><br># fi<br><br>#done<br><br><br><br><br><br><br><div class="gmail_quote">El 1 de julio de 2010 17:26, Pablo Manuel Rizzo <span dir="ltr">&lt;<a href="mailto:info@pablorizzo.com">info@pablorizzo.com</a>&gt;</span> escribi�:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote"><div class="im">2010/7/1 Diego Saravia <span dir="ltr">&lt;<a href="mailto:dsa@unsa.edu.ar" target="_blank">dsa@unsa.edu.ar</a>&gt;</span><br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br><br><div class="im">hay que integrarlo con el programa que deduce las versiones, para eso lo escribi<br><br>no es mi idea generar un nuevo sort, con el tiempo el sort -V seguramente andara<br><br>solamente poder saber si un paquete es posterior o anterior a lo que ya esta instalado.<br>



<br>supongo que el programa que dado un paquete indica su nombre y versiones, cuando le digas cual es la versin instalada de ese mismo paquete te dira adicionalmente si es anterior o posterior<br><br>esa es mi idea,<br><br>



se te ocurre algo mejor<br clear="all"><font color="#888888"><br></font></div></blockquote><div><br>Ah, est� bien, hab�a entendido otra cosa.<br><br></div></div>-- <br><div><div></div><div class="h5">Pablo Manuel Rizzo<br>
-------------------------------<br><a href="http://pablorizzo.com" target="_blank">http://pablorizzo.com</a><br>

-------------------------------<br><br>
</div></div><br>________________________________________________<br>
<br>
<br>
Solar-General es una lista abierta a toda la comunidad, sin ninguna moderaci�n, por lo que se apela a la tolerancia y al respeto mutuo.<br>
Las opiniones expresadas son responsabilidad exclusiva de sus respectivos/as autores/as. La Asociaci�n Solar no se hace responsable por los mensajes vertidos, ni representan necesariamente el punto de vista de la Asociaci�n Solar.<br>

<br>
<a href="mailto:Solar-general@lists.ourproject.org">Solar-general@lists.ourproject.org</a><br>
<a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/solar-general" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/solar-general</a><br></blockquote></div><br><br clear="all"><br>-- <br>Diego Saravia<br>
<a href="mailto:Diego.Saravia@gmail.com">Diego.Saravia@gmail.com</a><br>NO FUNCIONA-&gt;<a href="mailto:dsa@unsa.edu.ar">dsa@unsa.edu.ar</a><br>