Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.7
perl-BSSolv
BSSolv-0.09-Require-all-relational-operators-to...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File BSSolv-0.09-Require-all-relational-operators-to-be-surrounded-by.patch of Package perl-BSSolv
From 43d48386548d6f83ef95364aadd1704f8a6a231b Mon Sep 17 00:00:00 2001 From: Oleg Girko <ol@infoserver.lv> Date: Fri, 19 Aug 2016 20:16:36 +0100 Subject: [PATCH] Require all relational operators to be surrounded by spaces. Some capabilities provided or required by RPM packages can have equal sign inside the name. For example, various font packages in Fedora provide capabilities with names looking like "font(:lang=XX)" where "XX" is language code. Unfortunately, dependency parser in BSSolv module (dep2id() function in BSSolv.xs file) interprets this equal sign as a relational operator resulting in wrong versioned capability "font(:lang" with version equal to something looking like "XX)" (where "XX" is language code) when importing repositories using $pool->repofromdata() or $repo->updatedoddata() methods. This change provides a workaround for this problem by ignoring relational operators not separated by space from capability name and treating them as part of capability name. Signed-off-by: Oleg Girko <ol@infoserver.lv> --- BSSolv.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BSSolv.xs b/BSSolv.xs index cd276a9..507e8aa 100644 --- a/BSSolv.xs +++ b/BSSolv.xs @@ -165,7 +165,7 @@ dep2id(Pool *pool, char *s) while (*s == ' ' || *s == '\t') s++; n = s; - while (*s && *s != ' ' && *s != '\t' && *s != '<' && *s != '=' && *s != '>') + while (*s && *s != ' ' && *s != '\t') s++; #ifdef REL_MULTIARCH if (s - n > 4 && s[-4] == ':' && !strncmp(s - 4, ":any", 4)) -- 2.5.5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor