--- /opt/jdsbld/lib/pkgbuild-1.3.101/pkgdb.pm.orig 2010-03-11 15:34:24.124619259 +0100
+++ /opt/jdsbld/lib/pkgbuild-1.3.101/pkgdb.pm 2010-03-11 16:36:17.634379118 +0100
@@ -273,8 +273,12 @@
if ($search_out eq "") {
# check if a package with this name is installed locally
$search_out = `/usr/bin/pkg info -l '$pkg' 2>/dev/null`;
- if ($search_out =~ /Name: $pkg\n.*Version: ([0-9.]*)\n.*Branch: ([0-9.]*)/s) {
- $self->{ips_pkgname_cache}->{$pkg} = "${pkg}\@$1-$2";
+ if ($search_out =~ /Name: $pkg\n.*Version: ([0-9.]*)\n.*Branch: ([0-9.]+|None)/s) {
+ if ($2 eq "None") {
+ $self->{ips_pkgname_cache}->{$pkg} = "${pkg}\@$1";
+ } else {
+ $self->{ips_pkgname_cache}->{$pkg} = "${pkg}\@$1-$2";
+ }
return "${pkg}\@$1-$2";
} else {
if ($search_out eq "") {
Thanks,
Vita
_______________________________________________
pkg-discuss mailing list
pkg-d...@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
This should be set to the folks maintaining pkgtool; despite the
matching presence of "pkg" in both names, those folks don't hang
out here. Perhaps the desktop-discuss alias would be a better
place?
- Bart
--
Bart Smaalders Solaris Kernel Performance
bart.sm...@oracle.com http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."