Summary: | mtimes of extracted files wrong | ||
---|---|---|---|
Product: | [Applications] ark | Reporter: | kujub <kjb-temp-2013> |
Component: | general | Assignee: | Harald Hvaal <metellius> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | rakuco |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
kujub
2008-08-01 19:00:14 UTC
Just a possible workaround for this: Extract And Compress KDE4 http://www.kde-apps.org/content/show.php/Extract+And+Compress+KDE4?content=84206 Kurt: is switching to another application really a workaround for the ark bug described here? Anyways, I tested this with my trunk version and I can indeed confirm that ark does not preserve mtimes of files during extraction. The actual creation of files is all handled by libarchive, so I imagine this is just a question of finding the right flag to set before extraction. Should be backportable as well for 4.1.1 SVN commit 847705 by metellius: BUG: 168020 File times are restored M +1 -1 libarchivehandler.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=847705 Thank you for that. I applied the patch from WebSVN here and now I get when extacting mprime2414.tar.gz with ark: $ LANG=C ll --full-time total 4020 -rw-r--r-- 1 kurt kurt 4917 2005-08-09 20:01:54.000000000 +0200 license.txt -rwxr-xr-x 1 kurt kurt 4015796 2005-08-09 20:01:55.000000000 +0200 mprime -rw-r--r-- 1 kurt kurt 25925 2005-08-09 20:01:54.000000000 +0200 readme.txt -rw-r--r-- 1 kurt kurt 6860 2005-08-09 20:01:54.000000000 +0200 stress.txt -rw-r--r-- 1 kurt kurt 14817 2005-08-09 20:01:54.000000000 +0200 undoc.txt -rw-r--r-- 1 kurt kurt 34486 2008-08-16 11:20:26.071195557 +0200 whatsnew.txt But tar lists: $ tar -tvf mprime2414.tar.gz -rw-r--r-- root/root 4917 2005-08-09 20:01 license.txt -rwxr-xr-x root/root 4015796 2005-08-09 20:01 mprime -rw-r--r-- root/root 25925 2005-08-09 20:01 readme.txt -rw-r--r-- root/root 6860 2005-08-09 20:01 stress.txt -rw-r--r-- root/root 14817 2005-08-09 20:01 undoc.txt -rw-r--r-- root/root 34486 2005-08-09 20:01 whatsnew.txt So it seems to help only for some of the files. (weird) Link to the used file: ftp://mersenne.org/gimps/mprime2414.tar.gz I can indeed confirm this, very weird. Will do some debugging and see if I can find out why this happens. Reopening the bug meanwhile. SVN commit 848127 by metellius: BUG: 168020 Last entry was not finished, caused by archive_write_finish not being called. M +2 -0 libarchivehandler.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=848127 Ok this one seems to bee fixed now. Thank you. |