The following commit has been merged in the master branch:
commit c10ff1b95151394363767674faf7c8e400cc47ca
Author: Raphaël Hertzog <[email protected]>
Date:   Mon Mar 8 08:11:59 2010 +0100

    Dpkg::Deps::deps_compare(): fix a warning
    
    Commit 113533 broke it by using constants as keys: the name of the
    constants were used as string literals due to "=>" when we wanted their
    values to be used. Now we use the function notation of constants (since
    that's how they are implemented) to avoid this.
    
    Reported-By: Jonathan Nieder <[email protected]>

diff --git a/scripts/Dpkg/Deps.pm b/scripts/Dpkg/Deps.pm
index 9d98e5e..7798a83 100644
--- a/scripts/Dpkg/Deps.pm
+++ b/scripts/Dpkg/Deps.pm
@@ -317,11 +317,11 @@ This function is mainly used to implement the sort() 
method.
 
 our %relation_ordering = (
        'undef' => 0,
-       REL_GE => 1,
-       REL_GT => 2,
-       REL_EQ => 3,
-       REL_LT => 4,
-       REL_LE => 5,
+       REL_GE() => 1,
+       REL_GT() => 2,
+       REL_EQ() => 3,
+       REL_LT() => 4,
+       REL_LE() => 5,
 );
 
 sub deps_compare {

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to