Forcing the replacement of files in .sopm packages

Hello everyone, I'm currently trying to build a .opm package that has some otrs files but modified. This is my *.opm package should have a newer version of Kernel/System/Ticket.pm, but when i build the package and try to install it, OTRS gaves me an error because there is another package that already uses that file. I've been checking the source of Kernel/Modules/Installer.pm and i have seen that there's an Force option, but i still have no idea on how this parameter is suposed to be passed to the function. Any ideas suggest??? Thanks a lot

Hi Eduardo, On Feb 28, 2008, at 14:51 , Eduardo Raffoul wrote:
I'm currently trying to build a .opm package that has some otrs files but modified. This is my *.opm package should have a newer version of Kernel/System/Ticket.pm, but when i build the package and try to install it, OTRS gaves me an error because there is another package that already uses that file. I've been checking the source of Kernel/Modules/Installer.pm and i have seen that there's an Force option, but i still have no idea on how this parameter is suposed to be passed to the function.
Any ideas suggest???
You only can to this by using "bin/opm.pl". E. g. "bin/opm.pl -a install -p $PathToPackage -f 1". But, it's not recommended. If you already added e. g. Kernel/System/ Ticket.pm to an other .opm file you should upgrade this file in the existing .opm file. Because the latest installed will win. So you will have concurrent files. -Martin -- ((otrs)) :: OTRS AG :: Europaring 4 :: D - 94315 Straubing Fon: +49 (0) 9421 56818 0 :: Fax: +49 (0) 9421 56818 18 http://www.otrs.com/ :: Communication with success! Address of record: Bad Homburg Local Court: Bad Homburg, HRB 10751 Tax number: 003/240/97505 Chairman: Burchard Steinbild Chief Executive Officer: André Mindermann
participants (2)
-
Eduardo Raffoul
-
Martin Edenhofer