-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
openSUSE/rpm-config-SUSE#64, openSUSE/rpm-config-SUSE#79
This breaks the delayed copy and replaced prefix here:
Line 98 in e529213
| "%requires_eq", "%requires_ge", |
Lines 144 to 164 in e529213
| 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
Labels
No labels