Thank you, and sorry for wrong bug report.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1331#issuecomment-673523429___
Rpm-m
Closed #1331.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1331#event-3652419234___
Rpm-maint mailing list
Rpm-maint@lists.r
`%{VERSION}` is replaced within the spec file itself. You need to use
`%%{VERSION}` to avoid expanding the macro right away.
As you already said this is probably a really bad idea anyway. RPM actually
does backup modified config files on it's own if they are tagged as config
files in the package
I need to backup some conf files of my package during upgrade into directory
called e.g `/mypackage-`.
So I'm trying to get old package version in `%pre` scriplet and doing it in the
following way:
```
%pre
VERS=$(rpm --queryformat='%{VERSION}' -q mypackage)
VERS_ALTERNATIVE=$(rpm -qi mypackage |