Sorry to bug again..but I'm facing few issues as I tried to test this
feature:

Here I tried to publish a new package with a test file of size 148b and with
'preserve/strawberry' attribute:

-bash-3.2# eval `pkgsend open [EMAIL PROTECTED]
-bash-3.2# pkgsend add file test123 mode=0555 owner=root group=bin
preserve=strawberry path=/test/testpkgram/test123 -bash-3.2# pkgsend close
PUBLISHED
pkg:/[EMAIL PROTECTED],5.11-4:20081031T204122Z
-bash-3.2# ls -lrt /test/testpkgram/test123

The earlier version of this package had left a file of size 108b:

-r-xr-xr-x   1 root     bin          108 Oct 31 20:40
/test/testpkgram/test123

-bash-3.2# pkg refresh
pkg: 1/2 catalogs successfully updated:
    pkg.opensolaris.org: node name or service name not known
-bash-3.2# pkg install testpkgram1
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    1/1         1/1     0.00/0.00

PHASE                                        ACTIONS
Update Phase                                     2/2

When I installed the new version of the pkg, I expected the old file
(test123) to be left intact with same 108b, but I found that it has been
overwritten with the new file:

-bash-3.2# ls -lrt /test/testpkgram/test123
-r-xr-xr-x   1 root     bin          148 Oct 31 20:42
/test/testpkgram/test123


Am I missing something here? Request you to kindly help here..

regards,
Ram

On Fri, Oct 31, 2008 at 7:37 PM, ramanujan oops <[EMAIL PROTECTED]> wrote:

> Got it, thanks a ton..
>
>
> On Fri, Oct 31, 2008 at 7:34 PM, Danek Duvall <[EMAIL PROTECTED]>wrote:
>
>> On Fri, Oct 31, 2008 at 07:23:23PM +0530, ramanujan oops wrote:
>>
>> > Thanks for the response..But, how can I tag a 'preserve' attribute to a
>> > file? I  didn't find any documents wrt this attribute, can you kindly
>> > explain further on this?
>>
>> man -s5 pkg
>>
>> Danek
>>
>
>
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to