Commit 93dcd87
committed
Lua: Return empty result for no matches for glob()
If "c" is not given in the a second parameter glob should not return any
results if the pattern doesn't match any files.
Fix the condition that checks this parameter. Also don't error out if
rpmGlob returns GLOB_NOMATCH which is expected in this case.
Add a test case.
Resolves: rpm-software-management#37941 parent ef948df commit 93dcd87
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
937 | 938 | | |
938 | 939 | | |
939 | 940 | | |
| 941 | + | |
940 | 942 | | |
941 | 943 | | |
942 | | - | |
| 944 | + | |
943 | 945 | | |
944 | 946 | | |
945 | | - | |
| 947 | + | |
| 948 | + | |
946 | 949 | | |
947 | 950 | | |
948 | 951 | | |
949 | 952 | | |
950 | 953 | | |
951 | 954 | | |
952 | | - | |
| 955 | + | |
953 | 956 | | |
954 | 957 | | |
955 | 958 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1009 | 1009 | | |
1010 | 1010 | | |
1011 | 1011 | | |
| 1012 | + | |
1012 | 1013 | | |
1013 | 1014 | | |
1014 | 1015 | | |
| |||
0 commit comments