Re: rpm %post - check for version being upgraded

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Langhoff <martin.langhoff@xxxxxxxxx> wrote:
> This is a bit of advanced rpm trickery that probably falls in the
> "don't do that" category. :-/
> 
> Short version:
> 
>    How do I query in %post, when executed during an upgrade,
>    for the version we are upgrading from?

Urgh.

> Long version:
> 
> A custom rpm (that OLPC's XS uses to manage configuration) needs to
> nuke a dynamically generated config file -
> /etc/udev/rules.d/70-persistent-net.rules - _only once_. Before
> version 0.5 of the pkg, the script that drove the device naming was
> subtly wrong.

Why "only once"? Better/much more robust/easier stomp on data
_always_. Perhaps do it with version 1.2.3-0.fc11, and (after a suitable
time) release 1.2.3-1.fc11?
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239
Casilla 110-V, Valparaiso, Chile 2340000       Fax:  +56 32 2797513

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux