Просмотр исходного кода

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 <jrnieder@gmail.com>
Raphaël Hertzog лет назад: 16
Родитель
Сommit
c10ff1b951
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      scripts/Dpkg/Deps.pm

+ 5 - 5
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 {