Skip to content

Commit

Permalink
Use dependency flags PRETRANS/POSTTRANS for preTrans/postTrans script…
Browse files Browse the repository at this point in the history
…let requirements
  • Loading branch information
moedan authored and ctron committed Sep 10, 2024
1 parent 357bf3a commit 2932d54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ public void setVerifyScript(final String script) {
}

public void setPreTransactionScript(final String interpreter, final String script) {
addInterpreterRequirement(interpreter, RpmDependencyFlags.SCRIPT_PREUN);
addInterpreterRequirement(interpreter, RpmDependencyFlags.PRETRANS);
setScript(RpmTag.PRETRANSACTION_SCRIPT_PROG, RpmTag.PRETRANSACTION_SCRIPT, interpreter, script);
}

Expand All @@ -1239,7 +1239,7 @@ public void setPreTransactionScript(final String script) {
}

public void setPostTransactionScript(final String interpreter, final String script) {
addInterpreterRequirement(interpreter, RpmDependencyFlags.SCRIPT_POSTUN);
addInterpreterRequirement(interpreter, RpmDependencyFlags.POSTTRANS);
setScript(RpmTag.POSTTRANSACTION_SCRIPT_PROG, RpmTag.POSTTRANSACTION_SCRIPT, interpreter, script);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public enum RpmDependencyFlags {
LESS(1),
GREATER(2),
EQUAL(3),
POSTTRANS(5),
PREREQ(6),
PRETRANS(7),
INTERPRETER(8),
Expand Down

0 comments on commit 2932d54

Please sign in to comment.