google / rpmpack

rpmpack (tar2rpm) - package rpms in pure golang or cli
Apache License 2.0
116 stars 32 forks source link

added %pretrans %posttrans scriptlets #58

Closed cristianciutea closed 3 years ago

cristianciutea commented 3 years ago

This PR adds %pretrans and %posttrans scriptlets to rpm pkg.

pretrans and posttrans are run at start and end of a transaction. On upgrade, the scripts are run in the following order:

  1. %pretrans of new package
  2. %pre of new package (package install)
  3. %post of new package
  4. %preun of old package
  5. (removal of old package)
  6. %postun of old package
  7. %posttrans of new package
google-cla[bot] commented 3 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

cristianciutea commented 3 years ago

@googlebot I signed it!