diff options
Diffstat (limited to 'scripts/lib/recipetool/create_buildsys.py')
| -rw-r--r-- | scripts/lib/recipetool/create_buildsys.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create_buildsys.py b/scripts/lib/recipetool/create_buildsys.py index e914e53aab..4743c740cf 100644 --- a/scripts/lib/recipetool/create_buildsys.py +++ b/scripts/lib/recipetool/create_buildsys.py | |||
| @@ -863,6 +863,10 @@ class SpecFileRecipeHandler(RecipeHandler): | |||
| 863 | break | 863 | break |
| 864 | if len(foundvalues) == len(valuemap): | 864 | if len(foundvalues) == len(valuemap): |
| 865 | break | 865 | break |
| 866 | # Drop values containing unexpanded RPM macros | ||
| 867 | for k in list(foundvalues.keys()): | ||
| 868 | if '%' in foundvalues[k]: | ||
| 869 | del foundvalues[k] | ||
| 866 | if 'PV' in foundvalues: | 870 | if 'PV' in foundvalues: |
| 867 | if not validate_pv(foundvalues['PV']): | 871 | if not validate_pv(foundvalues['PV']): |
| 868 | del foundvalues['PV'] | 872 | del foundvalues['PV'] |
