Commit 22edddf
committed
Check if mod is already loaded before looking at avails
When trying to load a module, first look into already loaded modules and
their alternative names prior resolving available modules.
Only take into account the loaded module that exactly matches the module
specification passed to cmdModuleLoad. Which means that partial start
match, version range or version list are not taken into account (to be
able to resolve to the default from these kind of specifications).
Fixes #602
Signed-off-by: Xavier Delaruelle <[email protected]>1 parent 28d8a25 commit 22edddf
4 files changed
+35
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1195 | 1195 | | |
1196 | 1196 | | |
1197 | 1197 | | |
1198 | | - | |
| 1198 | + | |
| 1199 | + | |
1199 | 1200 | | |
1200 | 1201 | | |
1201 | | - | |
| 1202 | + | |
1202 | 1203 | | |
1203 | 1204 | | |
1204 | 1205 | | |
| |||
1436 | 1437 | | |
1437 | 1438 | | |
1438 | 1439 | | |
1439 | | - | |
| 1440 | + | |
1440 | 1441 | | |
1441 | 1442 | | |
1442 | 1443 | | |
| |||
1497 | 1498 | | |
1498 | 1499 | | |
1499 | 1500 | | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
1500 | 1509 | | |
1501 | 1510 | | |
1502 | 1511 | | |
1503 | 1512 | | |
1504 | 1513 | | |
1505 | | - | |
| 1514 | + | |
1506 | 1515 | | |
1507 | 1516 | | |
1508 | 1517 | | |
| |||
1569 | 1578 | | |
1570 | 1579 | | |
1571 | 1580 | | |
1572 | | - | |
| 1581 | + | |
1573 | 1582 | | |
1574 | 1583 | | |
1575 | 1584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1690 | 1690 | | |
1691 | 1691 | | |
1692 | 1692 | | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
1693 | 1700 | | |
1694 | 1701 | | |
1695 | 1702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
1117 | | - | |
1118 | | - | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1119 | 1128 | | |
1120 | 1129 | | |
1121 | 1130 | | |
| |||
0 commit comments