[arch-general] [arch-dev-public] Sharing my repo-tools
Mauro Santos
registo.mailling at gmail.com
Sun Apr 11 18:26:40 EDT 2010
On 04/11/2010 08:09 PM, Pierre Schmitz wrote:
> On Sat, 10 Apr 2010 03:13:33 +0200, Pierre Schmitz <pierre at archlinux.de>
> wrote:
>> I have finally put the tools I use to sync my local repo and to create
>> those magic rebuild lists into a git repo. I polished them to increase
>> usability and portability, but they are not really ready to be run e.g.
> on
>> gerolde.
>
> I just added a simple integrity check for a repo:
> https://git.archlinux.de/repo-tools.git/tree/checkrepo
>
> Any ideas why writing that md5sums.txt is so slow?
>
Try something like this:
cat `find $tmp/$repo/$arch -iname desc` | egrep -i -A1 "filename|md5" |
tr -d '\n' | sed 's/%FILENAME%/\n/g' | sed 's/%/ /g' | sed 's/--/ /g' |
awk '{print $3 " " $1}' > $tmp/md5sums.txt
and adapt to your needs. This should be really fast, way faster than
using a for loop to read each file.
More information about the arch-general
mailing list