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

Is it possible to refer to the files in the spec's pre script



Hi,
I have a requirement that, if  my RPM package is overwriting a file(any
file, not only config) from another package, take the backup of that file.
Basically I want to do something like the following in the %pre section

%files -p $location/files.txt
%pre
tar -cf /opt/changedfiles.tar  %{files}

But this is not working as it is.


Thanks
Sateesh





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