Only require that archive name starts with subfolder name, not that they are identical

Review Request #107634 - Created Dec. 8, 2012 and discarded

Information
Sandro Mani
ark
Reviewers
kdeutils
Improve subfolder autodetection
Details:
- the path in RPM files begins with ./, which broke the m_isSingleFolderArchive detection (since top-level folder is always .)
- When autodetecting the subfolder, what one expects IMO is that it prevents situations like
<archivename>/<archivename>/{files}
when extracting the archive. However, if the archive contains only a single folder which is _not_ equal to the archive basename, in those cases a new folder <archivename> should be created. Otherwise, for instance when extracting an rpm file libfoo.rpm, the files would be extracted in usr (which is the only top-level folder in the archive), but it is far more intuitive to have the files extracted under libfoo/usr/{files}

  

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Sandro Mani
Sandro Mani
Kevin Kofler
Sandro Mani
Sandro Mani
Sandro Mani
Review request changed

Status: Discarded

Loading...