[PR #49] [MERGED] Don't remove entries on upgrade #199

Open
opened 2026-01-29 16:31:12 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/quamotion/dotnet-packaging/pull/49
Author: @qmfrederik
Created: 11/7/2017
Status: Merged
Merged: 11/8/2017
Merged by: @qmfrederik

Base: masterHead: rpm/no-removal-on-upgrade


📝 Commits (1)

  • e705a54 Don't remove entries in the prun script when the package is being upgraded.

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 Packaging.Targets/Rpm/RpmPackageCreator.cs (+5 -1)

📄 Description

We will remove entries with RemoveOnUninstall via a preun script. This script also runs when the package is being upgraded.

Mark this script with a condition $1 -eq 0 to detect package uninstall rather than upgrade.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/quamotion/dotnet-packaging/pull/49 **Author:** [@qmfrederik](https://github.com/qmfrederik) **Created:** 11/7/2017 **Status:** ✅ Merged **Merged:** 11/8/2017 **Merged by:** [@qmfrederik](https://github.com/qmfrederik) **Base:** `master` ← **Head:** `rpm/no-removal-on-upgrade` --- ### 📝 Commits (1) - [`e705a54`](https://github.com/quamotion/dotnet-packaging/commit/e705a5479611a985c63eec029c349308d16d030e) Don't remove entries in the prun script when the package is being upgraded. ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Packaging.Targets/Rpm/RpmPackageCreator.cs` (+5 -1) </details> ### 📄 Description We will remove entries with `RemoveOnUninstall` via a `preun` script. This script also runs when the package is being upgraded. Mark this script with a condition `$1 -eq 0` to detect package uninstall rather than upgrade. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:31:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#199