cleaning after apt-mirror

2014-10-07 Thread Abdelkader Belahcene
Hi, I created a local mirror for testing distro using apt-mirror. the /var/clean.sh The problem is when I ran it again, the old packages are still there, the /var/clean.sh didn't clean the old version !!!??? so I wrote a script to clean it, I attach my script. I am not satisfied by my script.

Re: cleaning after apt-mirror

2014-10-07 Thread Don Armstrong
On Tue, 07 Oct 2014, Abdelkader Belahcene wrote: I am not satisfied by my script. I sorted the package in descending order and kept the first and deleted others. this seemed correct, It's not correct. You must sort on the basis of version number, which does not necessarily increase lexically.

Re: Re: cleaning after apt-mirror

2014-10-07 Thread Abdelkader Belahcene
thanks for reply, but the problem is 2) Have a version number less than the version in the Packages file. look at these packages: main/m/mutter/gir1.2-mutter-3.0_3.12.2-2_i386.deb main/m/mutter/gir1.2-mutter-3.0_3.12.2-2+b1_i386.deb the sort gives gir1.2-mutter-3.0_3.12.2-2_i386.deb more

Re: cleaning after apt-mirror

2014-10-07 Thread Don Armstrong
On Tue, 07 Oct 2014, Abdelkader Belahcene wrote: but the problem is 2) Have a version number less than the version in the Packages file. look at these packages: main/m/mutter/gir1.2-mutter-3.0_3.12.2-2_i386.deb main/m/mutter/gir1.2-mutter-3.0_3.12.2-2+b1_i386.deb the sort gives