Skip to content

rpm-config-SUSE changed %requires_eq #185

@bnavigator

Description

@bnavigator

openSUSE/rpm-config-SUSE#64, openSUSE/rpm-config-SUSE#79

This breaks the delayed copy and replaced prefix here:

"%requires_eq", "%requires_ge",

elseif PROPERTY_COPY_MODIFIED[property] then
-- specifically handle %name macro before expansion
if not subpackage_only then
line = line:gsub("%%{?name}?", current_flavor .. "-" .. modname)
end
local function print_property_copy_modified(value)
value = replace_prefix(value, flavor)
-- rely on print_altered to perform expansion on the result
print_altered(string.format("%s %s", property, value))
end
if PROPERTY_COPY_DEFAULT_PROVIDER[property] then
-- print renamed lines for all flavors which the current_flavor provides.
for iflavor in string.gmatch(rpm.expand("%{?" .. current_flavor .. "_provides}") .. " " .. current_flavor, "%S+" ) do
current_flavor = iflavor -- make sure to process the main current_flavor last for final reset.
print_property_copy_modified(value)
end
else
print_property_copy_modified(value)
end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions