[PATCH] The Architecture field can contain multiple values

John Wright john.wright at hp.com
Thu Jul 2 01:09:26 UTC 2009


The regular expression for parsing the Architecture field in Sources
assumed it would only be one word.  Since it can be a list of supported
architectures, this patch changes the regular expression to use '.+'
instead of '\S+'.
---
 lib/WannaBuild/Database.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/WannaBuild/Database.pm b/lib/WannaBuild/Database.pm
index 6f3abfb..8f63124 100644
--- a/lib/WannaBuild/Database.pm
+++ b/lib/WannaBuild/Database.pm
@@ -1065,7 +1065,7 @@ sub parse_sources {
 	s/\s*$//m;
 	/^Package:\s*(\S+)$/mi and $name = $1;
 	/^Version:\s*(\S+)$/mi and $version = $1;
-	/^Architecture:\s*(\S+)$/mi and $arch = $1;
+	/^Architecture:\s*(.+)$/mi and $arch = $1;
 	/^Section:\s*(\S+)$/mi and $section = $1;
 	/^Priority:\s*(\S+)$/mi and $priority = $1;
 	/^Build-Depends:\s*(.*)$/mi and $builddep = $1;
-- 
debian.1.6.3.3.1.7.g944a7


--C7zPtVaVf+AK4Oqc--





More information about the Buildd-tools-devel mailing list