from the quill of Pixel <[EMAIL PROTECTED]> on scroll
<[EMAIL PROTECTED]>
> "Brian J. Murrell" <[EMAIL PROTECTED]> writes:
> 
> > -next if /^--$/;
> 
> i don't see why you need such a fix, can you tell more about it?

Because if I don't have that in there, I get the following:

# urpmi MYSQL-devel
To satisfy dependencies, the following packages are going to be installed (1 MB):
MySQL-devel-3.22.25-1 -- MySQL-client-3.22.25-1

Notice the middle dependancy.  I can provide more debugging information
if you like.

The following patch also needs to be applied to urpmi:

--- /tmp/urpmi  Sat Jan  8 19:38:42 2000
+++ /usr/bin/urpmi      Sun Jan  9 16:28:44 2000
@@ -68,6 +68,7 @@
 
 @installed = `/bin/rpm -qa`; $? and die(_("rpm database query failed\n"));
 foreach (@installed) {
+       chomp;
     my ($name, $v, $r) = /(.*)-([^-]+)-([^-.]+)/;
     exists $installed{$name} && le_version([$v, $r], $installed{$name}) or $ins
talled{$name} = [$v, $r];
 }
@@ -211,7 +212,7 @@
 }
 sub le_version {
     my $cmp = version_compare($_[0][0], $_[1][0]);
-    return $cmp < 0 || $cmp == 0 && version_compare($_[0][1], $_[1][1]) < 0;
+    return $cmp < 0 || $cmp == 0 && version_compare($_[0][1], $_[1][1]) <= 0;
 }
 
 sub toMb {

Anxious to test with the new grpmi and rpmdrake now.  :-)

b.


--
Brian J. Murrell                              InterLinx Support Services, Inc.
North Vancouver, B.C.                                             604 983 UNIX
        Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD

Reply via email to