Can't install/upgrade package, file x already used in pack..

Moderator: crythias

Locked
ndhvu275
Znuny advanced
Posts: 139
Joined: 06 Nov 2012, 09:02
Znuny Version: 3.x, 4.x and 5.x
Real Name: Vu Nguyen
Company: INFOdation
Location: Netherlands
Contact:

Can't install/upgrade package, file x already used in pack..

Post by ndhvu275 »

Dear all,

I had a problem with can not use a file is already existed in other package. This is my error

Code: Select all

Can't install/upgrade package, file Custom/Kernel/Modules/AgentTicketPhone.pm already used in package OTRSxx-x.x.x
I know I have to reuse AgentTicketPhone.pm is existing to customize more. I also need to make a package for my self to install. Anybody can help me? Or what is the better solution

Thanks

Vu Nguyen
OTRS 3.x, 4.x on CentOS/Windows
MySQL database
External customer backend with MySQL, MSSQL
Customization
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Can't install/upgrade package, file x already used in pa

Post by jojo »

check the README file in the Custom directory
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ndhvu275
Znuny advanced
Posts: 139
Joined: 06 Nov 2012, 09:02
Znuny Version: 3.x, 4.x and 5.x
Real Name: Vu Nguyen
Company: INFOdation
Location: Netherlands
Contact:

Re: Can't install/upgrade package, file x already used in pa

Post by ndhvu275 »

jojo wrote:check the README file in the Custom directory
Hi jojo,

First thank you, I know it. As my above exmaple, the AgentTicketPhone.pm is already used in another package, it's also placed in /Custom folder. The problem if I use this file to customize and make a package as well, during installation the error will happen, because 2 packages are using a same file (same path). I'm thinking only one way to copy code to this existing file by manually, can not make a package for it

Or do you have other ideas?

Thanks

Vu Nguyen
OTRS 3.x, 4.x on CentOS/Windows
MySQL database
External customer backend with MySQL, MSSQL
Customization
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Can't install/upgrade package, file x already used in pa

Post by reneeb »

Make an AgentTicketPhoneNguyen.pm, create a config file that has all the options for AgentTicketPhone adopted for AgentTicketPhoneNguyen, deactivate AgentTicketPhone.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
ndhvu275
Znuny advanced
Posts: 139
Joined: 06 Nov 2012, 09:02
Znuny Version: 3.x, 4.x and 5.x
Real Name: Vu Nguyen
Company: INFOdation
Location: Netherlands
Contact:

Re: Can't install/upgrade package, file x already used in pa

Post by ndhvu275 »

reneeb wrote:Make an AgentTicketPhoneNguyen.pm, create a config file that has all the options for AgentTicketPhone adopted for AgentTicketPhoneNguyen, deactivate AgentTicketPhone.
Ah this is a really nice solution. Thank you very much, I will do like this

Thanks again

Vu Nguyen
OTRS 3.x, 4.x on CentOS/Windows
MySQL database
External customer backend with MySQL, MSSQL
Customization
Locked