Append appears to be broken #216
Comments
|
Odd - what OS are you on? |
|
I'm running Fedora 31, but I can try another OS in docker if you have one I should check out? |
|
|
Right, that's what it should be. I'm just wondering it there's something about your environment that would make this line count disappear somehow. |
|
I can see no where in the source code where |
|
Yeah I'm seeing that too. That sounds like the cause of this, checking when that variable went away... |
|
According to my debugger, I think the value of skip we need is stored in This was the commit I found there it was mentioned. Not sure how they were connected: 0d093c0 |
|
Oh, I see. This line used to set the |
|
Also our unit tests for append are obviously broken :( |
|
I think they are testing the archive is "good", but not that they have all the files. The archive is valid, so I'd just call them "not sufficient" :) |
|
Adding
After this line works |
|
It does work but it seems like instead of appending it is just overwriting the archive still, losing the previous contents. |
|
Hmmm, that fix successfully appends for me... |
I'm running master 39da42d and
--appenddoes not appear to be working. (Also tried 2.4.2)Steps to reproduce
makeself.sh ./somedir archive.sh label_me ./myscriptmakeself.sh --append ./new_files archive.shError observed
When the second makeself.sh call is made, I see this on the output:
Which comes from this line, where
OLDSKIPis undefined.I can see in the history, that
OLDSKIPused to beSKIP+1. but it was removed recently, but that was only in dumpconf, so I'm not sure how to fix this.I tried adding SKIP+1 myself, but sometimes its +1, sometimes its +2 (verified in
vi)Tests
The unittest
appendtestactually has the same problemChecking
--checkdoesn't actually detect that the previous files were all deleted. Some for the other compression algorithmsDesired outcome
Append should work
The text was updated successfully, but these errors were encountered: