1830540 Members
2939 Online
110013 Solutions
New Discussion

Packaging problem

 
Srimalik
Valued Contributor

Packaging problem

I have two packages(x,y) which are delivered with different versions of same application (Z)

In Z.1 I have X.1 but there was no Y.1
In z.2 both x.2 and y.2 are there.

Due to some design changes I have packaged some files which were present in X.1 in Y.2 and removed them from X.2 to avoid duplication.

While upgrading a system from Z.1(X.1) the files are installed correctly as expected.

But, when I remove Z.2(X.2,Y.2), the files which were shifted from X.1 to Y.2 are also getting removed.(as expected)

Hence Z.1 is broken as x.1's files are removed from the location which is shared by X.1 and Y.2.

Is there something I can do to avoid this. i.e the removal of Y.2 should not remove the files which were previously owned by X.1.

(The files I am talking about are text files and will not cause any problem to the system if X.1 uses the files provided by Y.2)

Please let me know if my explanation of the problem seems complicated. :)

Thanks
Sri




abandon all hope, ye who enter here..
7 REPLIES 7
Srimalik
Valued Contributor

Re: Packaging problem

I am thinking of doing a IPD_delfile for each of the files I do not want to be deleted.

Which is the correct script to do it in ?
a) postinstall
b) configure

thanks
Sri
abandon all hope, ye who enter here..
Dennis Handly
Acclaimed Contributor

Re: Packaging problem

Are you over thinking this or being too nice?
If you install a new version of any HP product, the previous version is just gone. You would have to reinstall it.

So your worry about Z.1 after you remove Z.2 is a non-issue.

>Please let me know if my explanation of the problem seems complicated.

Well, why? :-)

>I am thinking of doing a IPD_delfile for each of the files I do not want to be deleted. Which is the correct script to do it in?

It seems the correct control script is preremove. I.e. you want swlist to list it up to the time it is removed.
Srimalik
Valued Contributor

Re: Packaging problem


################
>are you over thinking this or being too nice?

both :)


>If you install a new version of any HP >product, the previous version is just gone. >You would have to reinstall it.
>So your worry about Z.1 after you remove Z.2 is a non-issue.

do you mean to say that if I install Z.2(Y.2), Z.1 will be removed?

which is not the case on my setup and I dun want it to happen. :)

(I am using version specific directories.
Only some files are shared, which are causing the problem.)

>It seems the correct control script is >preremove. I.e. you want swlist to list it >up to the time it is removed.

I don't want the file to be removed when I remove Z.2 as they are at a path which is used by Z.1 also. so I have to do IPD_delfile in postinstall/configure of Z.2.

IPD_delfile will remove the entries of those files from the sw database but the files be there on the filesystem. That is my aim.

This is just a workaround, This can be done in postinstall of Z2.Y2 or configure of Z2.y2.

Which is a better option? (It will be ok if swlist does not list the file for Z2.Y2)

Thanks
Sri
abandon all hope, ye who enter here..
Dennis Handly
Acclaimed Contributor

Re: Packaging problem

>do you mean to say that if I install Z.2(Y.2), Z.1 will be removed?

The entry for Z.1 yes but not the files.
I'm assuming they have the same SD product name but different revisions??

>(I am using version specific directories.

With ",l="? That may allow both.
I assume you are testing this?

>so I have to do IPD_delfile in postinstall/configure of Z.2.

As I said, you may want to do it in the preremove step. But postinstall seems better than configure.
Srimalik
Valued Contributor

Re: Packaging problem

Hi Dennis

Are there any specific reasons to choose postinstall over configure.

Thanks
Sri
abandon all hope, ye who enter here..
Dennis Handly
Acclaimed Contributor

Re: Packaging problem

>Are there any specific reasons to choose postinstall over configure.

I keep it straight based on how it had to do with diskless. (Which doesn't exist anymore. ;-)

Basically is the removal a property of the file system where installed or every system that mounted the filesystem? Is it fiddling with /var/ or /etc/? (Always use configure.)

If it is a property of the filesystem and only has to be done once, use postinstall. Otherwise use configure.
Srimalik
Valued Contributor

Re: Packaging problem

See the above posts :)..Thanks
Sri
abandon all hope, ye who enter here..