Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
50 user(s) are online (33 user(s) are browsing Forums)

Members: 0
Guests: 50

more...

Support us!

Headlines

 
  Register To Post  

Lha issues
Home away from home
Home away from home


See User information
@All
Is our latest up2date Lha packer is 2.15, i.e. this one ?
https://os4depot.net/share/utility/archive/lha.lha

Why i ask, that because i meet some strange problem:

I do pack some archive like this:

Quote:

lha -H0 a -r -e archive.lha #?


Now, while archive ok and all files seems to be visibly on os4, in total commander on win32, when i come to the directory i didn't see some of the files.

Yes, one may say "so go check your total commander with lha unpacker in", but then, i packed the same files before (few weeks ago), and total commander show them all just fine.

It looks like or archive simple broken still (just by luck didn't bring error on os4), or something weird happens somewhere..

More of it archive start to contain some files which shouldn't be there (i.e. like some self created file inside with of archive with name of archive). Or, like some copy of some file with different name in other place (and not where it should be)

Any ideas ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Lha issues
Home away from home
Home away from home


See User information
@kas1e

it worked a few weeks before...

so, maybe you changed something in your to-be-archived directory which now brought up these inconsistencies?

Go to top
Re: Lha issues
Home away from home
Home away from home


See User information
@Raziel
Yes of course i change some bits into directory which i want to pack, but how it can have any meaning to the whole general packing and making some files be missing to be viewed and creating files i don't have inside with content from other files ? It just seems like it create broken archives now which by luck kind of work.

Also, what i do lately is install this: http://os4depot.net/share/library/misc/xad_lha.lha due to "Underscrores instead of Spaces when unpacking" , but not sure if it can have any impact on the packing by pure lha..

Wtf..

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Lha issues
Home away from home
Home away from home


See User information
@kas1e

did you compare which files don't show up in windows?

if they're always the same than maybe total commander is interpreting those files wrong and "hides" them

windows does a lot of stuff behind closed curtains

Go to top
Re: Lha issues
Amigans Defender
Amigans Defender


See User information
@kas1e

Quote:
kas1e wrote:@Raziel
Yes of course i change some bits into directory which i want to pack, but how it can have any meaning to the whole general packing and making some files be missing to be viewed and creating files i don't have inside with content from other files ? It just seems like it create broken archives now which by luck kind of work.

Also, what i do lately is install this: http://os4depot.net/share/library/misc/xad_lha.lha due to "Underscrores instead of Spaces when unpacking" , but not sure if it can have any impact on the packing by pure lha..

Wtf..


That won't have any effect on packing, only on unpacking with XAD (Unarc/etc).

You are also specifying header level 0, which doesn't show up that bug anyway.

Maybe try packing with the default header level (2 I think), and see if that helps? There are issues with level 0 which is why the default was changed.

Go to top
Re: Lha issues
Just popping in
Just popping in


See User information
I've noticed that header level 0 will just fail/skip to archive some files that have too long paths and/or long file comments on them. Solution is to use header level 1 or 2 for that.

Go to top
Re: Lha issues
Home away from home
Home away from home


See User information
@all
Seems at least H2 produce archive without additional file in the root and in total commander all files can be seen.. at least fir brief check.

@jpv
Strange that files which were invisibly in totalcommander are in root of archive, and small by names. All looks like that something mess up archive a bit when i use H0, and this cause issues such as invisibly files/dirs and new additional files creations. Like filestructure mess up when lha pack it

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Lha issues
Just popping in
Just popping in


See User information
Quote:
@jpv
Strange that files which were invisibly in totalcommander are in root of archive, and small by names. All looks like that something mess up archive a bit when i use H0, and this cause issues such as invisibly files/dirs and new additional files creations. Like filestructure mess up when lha pack it

Maybe H0 issues appear in different way depending of the LhA port/version? I've mostly tested it with MorphOS LhA... maybe it skips files in these cases, but your version messes the file structure? In any case I have stopped to use H0, especially when archiving deep directory structures like the system partition, and RNOArchive doesn't use it either.

Go to top
Re: Lha issues
Home away from home
Home away from home


See User information
@Jpv
Quote:

maybe it skips files in these cases

Files not skipped: i can see them when i list in dopus4 on os4, but when i tried to check them in total commander on win32 : then there is none of some files. Sometimes, ready archive simple corrupted (even on os4). Once i switch to -H2 all going well (at least, visually in brief check).

Pretty strange! -H0 mean to have all go without compression, so kind of expected to put files as it..

edit: Oh, i find out why i use -H0 , that why:
https://www.amigans.net/modules/newbb/viewtopic.php?post_id=116536

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Lha issues
Just popping in
Just popping in


See User information
@kas1eQuote:
Pretty strange! -H0 mean to have all go without compression

No it doesn't, -H is just the header format and it doesn't affect to the compression. It's just what information about files is written and it would be quite logical that if something messes file names/structure, it is related to the headers.

Actually -H2 is supposed to add support for long filenames... at least in the Unix version (which is quite different to Amiga, so not sure). https://github.com/jca02266/lha/blob/master/header.doc.md

And maybe this is related?

To go without compression you would have to use the -z option.

Edit:
Quote:
Oh, i find out why i use -H0 , that why:

That's an issue with the unarchiver. I wouldn't use -H0 just for a hack for a certain unarchiver program when other levels do work with spaces with other unarchivers just fine.


Edited by jPV on 2024/11/19 7:35:00
Go to top
Re: Lha issues
Home away from home
Home away from home


See User information
@jPV

Right.. So -H2 then. But then some ppls may have not up2date unpacking tools => unarc will fail => unpacked content will fail..

But probably there is no other way to bugfix around it, only by pointing out on needs to install proper version of unpacking tools.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Lha issues
Just popping in
Just popping in


See User information
@kas1eQuote:
But probably there is no other way to bugfix around it, only by pointing out on needs to install proper version of unpacking tools.

Simple solution: don't create content with spaces :) I avoid using spaces on all my filenames always, because throughout the history they have caused problems everywhere.

Go to top
Re: Lha issues
Amigans Defender
Amigans Defender


See User information
Quote:

Quote:
Oh, i find out why i use -H0 , that why:

That's an issue with the unarchiver. I wouldn't use -H0 just for a hack for a certain unarchiver program when other levels do work with spaces with other unarchivers just fine.


Yeah, that's an old bug in the LhA module of XAD (I think v13 only). My external module fixes it. You can also use an up-to-date version of xadmaster. I think it did finally get updated in one of the OS4 updates.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project