| 1 |
<?php |
| 2 |
|
| 3 |
namespace Safe; |
| 4 |
|
| 5 |
use Safe\Exceptions\RpminfoException; |
| 6 |
|
| 7 |
/** |
| 8 |
* Add an additional retrieved tag in subsequent queries. |
| 9 |
* |
| 10 |
* @param int $tag One of RPMTAG_* constant, see the rpminfo constants page. |
| 11 |
* @throws RpminfoException |
| 12 |
* |
| 13 |
*/ |
| 14 |
function rpmaddtag(int $tag): void |
| 15 |
{ |
| 16 |
error_clear_last(); |
| 17 |
$result = \rpmaddtag($tag); |
| 18 |
if ($result === false) { |
| 19 |
throw RpminfoException::createFromPhpError(); |
| 20 |
} |
| 21 |
} |
| 22 |
|