Hi Danek,

thanks for you help. You showed me a solution.
I am not so good in bash so I managed it in this way:

bunzip2 none.bz2
cpio -id<none
edit some files
(in archive directory)
find .|sed s%^\./%%>list.files
vi list.files  (and remove "." and "list")
cat list.files | cpio -oVc>none
bzip2 none
then remove all files and directories except 'none.bz2'

Now my edited package is valid and can be published.

Thank to all for help!

Regards,

Jan Hlodan





On Sun, Nov 16, 2008 at 1:04 AM, Danek Duvall <danek.duvall at sun.com> wrote:
> 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
>



-- 
Jan Hlodan
Prague, Czech Republic
jan.hlodan at gmail.com
+420776263175

Reply via email to