Bug 279442
| Summary: | [GLIB] 'aptIfElse' should print out alternative package only if it exits | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Diego Pino <dpino> |
| Component: | New Bugs | Assignee: | Diego Pino <dpino> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Diego Pino
Function 'aptIfElse' evaluates whether a package exits and in case not returns an alternative name, regardless whether that package exits. For instance:
```
$(aptIfElse libgcrypt20-dev libgcrypt11-dev)
```
The code above checks first whether 'libgcrypt20-dev' is a valid package name. In case not, the function returns the alternative package 'libgcrypt11-dev'. This is not correct, since the alternative package many not exist either.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Diego Pino
Pull request: https://github.com/webkit/webkit/pull/33398
EWS
Committed 283467@main (7f9ab1968785): <https://commits.webkit.org/283467@main>
Reviewed commits have been landed. Closing PR #33398 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/135780158>