Re: [arch-dev-public] Sharing my repo-tools

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 04/11/2010 08:09 PM, Pierre Schmitz wrote:
> On Sat, 10 Apr 2010 03:13:33 +0200, Pierre Schmitz <pierre@xxxxxxxxxxxx>
> 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.




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux