b18e0da Fix upgrade detection in %posttrans scriptlet (rhbz#2115094)

Authored and Committed by zbyszek 2 years ago
1 file changed. 10 lines added. 5 lines removed.
    Fix upgrade detection in %posttrans scriptlet (rhbz#2115094)
    
    4047e4fb7bb76f2578989e98de276e9ceb4e94b9 got things very wrong.
    The trick with "[ $1 -eq 1 ]" doesn't work for transaction triggers
    because the argument is not provided by rpm. We need to use a state
    file to propagate the information from %post to %posttrans.
    
    (cherry picked from commit bab6dfc23a915a4daee2dc6b215df8171a66f2a5)
    
        
file modified
+10 -5