Skip to content

Commit

Permalink
Automatically regenerate the files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharhamel authored and shish committed Dec 21, 2024
1 parent f98860e commit 7ed1d36
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,7 @@
'rnp_save_keys_to_path',
'rnp_supported_features',
'rpmaddtag',
'rpmdefine',
'rrd_create',
'rrd_first',
'rrd_graph',
Expand Down
20 changes: 20 additions & 0 deletions generated/rpminfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,23 @@ function rpmaddtag(int $tag): void
throw RpminfoException::createFromPhpError();
}
}


/**
* Define or change a RPM macro value.
*
* This can be used to select the database path and backend to use
* instead of system default one.
*
* @param string $text Macro name, options, body.
* @throws RpminfoException
*
*/
function rpmdefine(string $text): void
{
error_clear_last();
$safeResult = \rpmdefine($text);
if ($safeResult === false) {
throw RpminfoException::createFromPhpError();
}
}
1 change: 1 addition & 0 deletions rector-migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@
'rnp_save_keys_to_path' => 'Safe\rnp_save_keys_to_path',
'rnp_supported_features' => 'Safe\rnp_supported_features',
'rpmaddtag' => 'Safe\rpmaddtag',
'rpmdefine' => 'Safe\rpmdefine',
'rrd_create' => 'Safe\rrd_create',
'rrd_first' => 'Safe\rrd_first',
'rrd_graph' => 'Safe\rrd_graph',
Expand Down

0 comments on commit 7ed1d36

Please sign in to comment.