Skip to content

Commit

Permalink
Add detection of %posttrans and %pretrans scriptlet from rpm header
Browse files Browse the repository at this point in the history
In specs files, user may use %posttrans and %pretrans scriptlet like this:
Requires(pretrans): test_pkg
Requires(posttrans): test_pkg
This commit add detection to the above special scriptlet

Signed-off-by: Shuo Wang <[email protected]>
  • Loading branch information
Shuo Wang committed Mar 14, 2024
1 parent c602cad commit a732096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parsehdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ cr_package_from_header(Header hdr,
// Calculate pre value
if (num_flags & (RPMSENSE_PREREQ |
RPMSENSE_SCRIPT_PRE |
RPMSENSE_POSTTRANS |
RPMSENSE_PRETRANS |
RPMSENSE_SCRIPT_POST))
{
pre = 1;
Expand Down

0 comments on commit a732096

Please sign in to comment.