Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
PackageKit
0005-zypp-don-t-waste-time-comparing-zypp-Arch-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0005-zypp-don-t-waste-time-comparing-zypp-Arch-string-rep.patch of Package PackageKit
From e7cd99b8b4911662bf825c7158155726b45fc0b6 Mon Sep 17 00:00:00 2001 From: Michael Andres <ma@suse.de> Date: Fri, 6 Jul 2012 12:09:59 +0200 Subject: [PATCH 5/9] zypp: don't waste time comparing zypp::Arch string representations --- backends/zypp/zypp-utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backends/zypp/zypp-utils.cpp b/backends/zypp/zypp-utils.cpp index 66bc523..726b9da 100644 --- a/backends/zypp/zypp-utils.cpp +++ b/backends/zypp/zypp-utils.cpp @@ -588,8 +588,7 @@ gboolean system_and_package_are_x86 (sat::Solvable item) { // i586, i686, ... all should be considered the same arch for our comparison - return (!strcmp (item.arch ().asString ().c_str (), "i586") && - !strcmp (ZConfig::defaultSystemArchitecture ().asString().c_str(), "i686")); + return ( item.arch() == Arch_i586 && ZConfig::defaultSystemArchitecture() == Arch_i686 ); } static gboolean -- 1.7.10.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor