Re: dpkg --compare-versions vs. ls

2010-01-20 Thread jidanni
JN Hope that helps, OK, I found apt-get -o Dir::Cache=/cf -o Dir::Cache::archives=debs/ autoclean will do what I want, leave only the current versions on my sneakernet shared memory card... Thanks. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe.

dpkg --compare-versions vs. ls

2010-01-19 Thread jidanni
Is there any case where $ cd /var/cache/apt/archives $ set -- $(ls -r some_package_*) $ dpkg --compare-versions $1 gt $2 isn't true? Thus for my uses, I needn't worry about dpkg --compare-versions and just use ls? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject

Re: dpkg --compare-versions vs. ls

2010-01-19 Thread Jonathan Nieder
jida...@jidanni.org wrote: Is there any case where $ cd /var/cache/apt/archives $ set -- $(ls -r some_package_*) $ dpkg --compare-versions $1 gt $2 isn't true? Yes. * dpkg --compare-versions uses ASCII to compare letters (so B a). In non-C locales, ls does not. * dpkg