That's great, works fine, thanks.

Adriaan, I'll roll a new release with this fix in it,
in the meantime you can apply the attached patch to
pkgbuild.pl

Laca

> Note that set actions can take multiple arguments:
> 
> 
> > set name=info.source_url 
> > value=tarball.tar.gzvalue=additional-tarball.tar.gz 
> > value=build-scripts.tar.gz
> 
> is perfectly legal in the dev repo IPS bits.

Index: pkgbuild.pl.in
===================================================================
RCS file: /cvsroot/pkgbuild/pkgbuild/pkgbuild.pl.in,v
retrieving revision 1.36.2.27
diff -u -r1.36.2.27 pkgbuild.pl.in
--- pkgbuild.pl.in	27 Feb 2009 09:40:00 -0000	1.36.2.27
+++ pkgbuild.pl.in	18 Mar 2009 02:51:34 -0000
@@ -1945,9 +1953,13 @@
 
     # add pointers sources specified by URLs and not listed in NoSource
     my @sources = $package->get_spec()->get_public_sources ();
+    my $source_values = "";
     foreach my $src (@sources) {
 	next if (not $src =~ /^(http|https|ftp):\/\//);
-	push (@$ref_lines, "set name=info.source_url value=\"$src\"");
+	$source_values .= " value=\"$src\"";
+    }
+    if ($source_values ne "") {
+	push (@$ref_lines, "set name=info.source_url$source_values");
     }
 }
 
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to