On Sun, Nov 16, 2008 at 12:02:08AM +0100, Jan Hlodan wrote:

> I am not sure if my commands are correct...

Sorry, you're right.  Here's the mistake:

> /export/home/tester/tmp/SUNWslim-utils/archive
> 
> sh-3.2# find . -print |cpio -oVc >none

"find ." will prepend "./" to all the paths.  Instead, do

    for i in *; do find $i -print; done | cpio ...

or

    find . -print | sed -e 's,^\./,,' | cpio ...

or if you're using zsh,

    print -l **/*(.) | cpio ...

The point is, you need for the paths to look the same in the new archive as
they were in the old.  Whatever mechanism you find to do that, you can
check against the original archive to see that you're doing it correctly.

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to