This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=1e0f6d9c8db189ea704fee24aa04245acc5d3151

commit 1e0f6d9c8db189ea704fee24aa04245acc5d3151
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Dec 10 19:44:08 2022 +0100

    Dpkg::Vendor::Ubuntu: Use a string comparison instead of debarch_eq()
    
    We have already normalize the arch name, so we can compare against the
    well known constant string we want, and there is no need to use the
    comparison function which is intended to compare arch names with
    different tuple formats.
---
 scripts/Dpkg/Vendor/Ubuntu.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Dpkg/Vendor/Ubuntu.pm b/scripts/Dpkg/Vendor/Ubuntu.pm
index a21daa868..f55e58d65 100644
--- a/scripts/Dpkg/Vendor/Ubuntu.pm
+++ b/scripts/Dpkg/Vendor/Ubuntu.pm
@@ -107,7 +107,7 @@ sub run_hook {
             require Dpkg::Arch;
 
             my $arch = Dpkg::Arch::get_host_arch();
-            if (Dpkg::Arch::debarch_eq($arch, 'ppc64el')) {
+            if ($arch eq 'ppc64el') {
                for my $flag (qw(CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS GCJFLAGS
                                 FFLAGS FCFLAGS)) {
                     my $value = $flags->get($flag);

-- 
Dpkg.Org's dpkg

Reply via email to