Thomas Bächler a écrit :
> Firmicus schrieb:
>> Great, thanks for this Aaron. I'll upload a few "any" packages when I
>> have a chance later tonight.
>
> ==> Processing 1 new/updated arch-independent packages for 'testing'...
> Checked out revision 46659.
>     Validating package arch (any) # Generated by makepkg 3.2.2
>    ERROR: mkinitcpio-0.5.26-1-any.pkg.tar.gz is not architecture
> independent!

This is due to a trivial bug in _grep_pkginfo() of /arch-new/db-functions

Patch attached.

> Updating DB for testing-i686
> ==> Copying DB file from 'testing'...
> ==> Processing 1 new/updated packages for repository 'testing'...
> Checked out revision 46659.
> Errors found when adding packages
> Copying new files to '/srv/ftp/testing/os/i686/'
> Updating DB for testing-x86_64
> ==> Copying DB file from 'testing'...
> ==> Processing 1 new/updated packages for repository 'testing'...
> Checked out revision 46659.
> Errors found when adding packages
> Copying new files to '/srv/ftp/testing/os/x86_64/'
> error: repo lock doesn't exist... something went terribly wrong!

This could be another bug. I'll test this later.

F
>From 5a8d831bf8d80be889e2560405ce7886783f1b2e Mon Sep 17 00:00:00 2001
From: Francois Charette <[email protected]>
Date: Mon, 20 Jul 2009 11:17:38 +0200
Subject: [PATCH] Bugfix in db-functions for _grep_pkginfo

* undefined argument $pattern changed to $2
---
 db-functions |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/db-functions b/db-functions
index 359e4c0..50f4555 100644
--- a/db-functions
+++ b/db-functions
@@ -58,7 +58,7 @@ repo_unlock () { #repo_unlock repo-name arch
 _grep_pkginfo() {
 	local _ret
 
-	_ret="$(/usr/bin/bsdtar -xOqf "$1" .PKGINFO | /bin/grep -m 1 -E "$pattern" | /bin/sed 's|\w*\s*=\s*\(.*\)|\1|')"
+	_ret=$(/usr/bin/bsdtar -xOqf "$1" .PKGINFO | /bin/grep -m 1 -E "$2" | /bin/sed 's|\w*\s*=\s*\(.*\)|\1|')
 	echo "$_ret"
 }
 
-- 
1.6.3.3

Reply via email to