Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/do-depends.sh
| Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | *) | ||||
| ;; | ;; | ||||
| esac | esac | ||||
| case "${origin}" in | case "${origin}" in | ||||
| *@*/*) ;; # Ignore @ in the path which would not be a flavor | *@*/*) ;; # Ignore @ in the path which would not be a flavor | ||||
| *@*) | *@*) | ||||
| export FLAVOR="${origin##*@}" | export FLAVOR="${origin##*@}" | ||||
| origin=${origin%@*} | origin=${origin%@*} | ||||
| ;; | ;; | ||||
| *~*/*) ;; # Ignore ~ in the path which would not be a subpackage | |||||
| *~*) | |||||
se: Only "@" or "~" may occur in an origin since they are alternatives in a single case statement. | |||||
| subpkg=${origin##*~} | |||||
| origin=${origin%~*} | |||||
| ;; | |||||
| esac | esac | ||||
| depends_args="${dp_DEPENDS_ARGS}" | depends_args="${dp_DEPENDS_ARGS}" | ||||
| target=${dp_DEPENDS_TARGET} | target=${dp_DEPENDS_TARGET} | ||||
| if [ -n "${last}" ]; then | if [ -n "${last}" ]; then | ||||
| # In case we depend on the fetch stage, actually run checksum, | # In case we depend on the fetch stage, actually run checksum, | ||||
| # this prevent a MITM attack. | # this prevent a MITM attack. | ||||
| if [ "${last}" = "fetch" ]; then | if [ "${last}" = "fetch" ]; then | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||
Only "@" or "~" may occur in an origin since they are alternatives in a single case statement.
If this was changed: what order of flavor and subpackage would be expected?