Subject: pkg_install, small bug&patch for dewey.c
To: None <tech-pkg@netbsd.org>
From: Lukasz Stelmach <lukasz.stelmach@telmark.waw.pl>
List: tech-pkg
Date: 10/08/2007 01:09:24
--i0/AhcQY5QxfSsSZ
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Greetings All.
The current version of pkg_admin can't match exact version number
because of small mistake in lib/dewey.c of pkg_install. I enclose
a patch that fixes it.
Best regards,
Please CC ansers, I haven't subscribed (yet?)
--
Miłego dnia
>Łukasz<
--i0/AhcQY5QxfSsSZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dewey.diff"
--- dewey.c~ 2007-10-08 01:02:15.692609695 +0200
+++ dewey.c 2007-10-08 01:03:02.197491872 +0200
@@ -275,7 +275,7 @@
if ((version=strrchr(pkg, '-')) == NULL) {
return 0;
}
- if ((sep = strpbrk(pattern, "<>")) == NULL)
+ if ((sep = strpbrk(pattern, "=!<>")) == NULL)
return -1;
/* compare name lengths */
if ((sep-pattern != version-pkg) ||
--i0/AhcQY5QxfSsSZ--