summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Savochenko <roman@home.home>2023-11-22 13:03:43 +0200
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-23 18:36:17 +0900
commit6c738063600cce624fb90bc00d30a8ec7ede1057 (patch)
tree3bfb7fcdbf85c4c60919413aea86d7c105d39137
parentf8733916dd5144c70425e1cd82850957ce0a320f (diff)
downloadkrusader-6c738063600cce624fb90bc00d30a8ec7ede1057.tar.gz
krusader-6c738063600cce624fb90bc00d30a8ec7ede1057.zip
Krusader: Unpacking TXZ.
Signed-off-by: Roman Savochenko <roman@home.home> (cherry picked from commit b36287661621bbec90c5f0b929d7d3b4a3952be9)
-rw-r--r--krusader/VFS/krarchandler.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/krusader/VFS/krarchandler.cpp b/krusader/VFS/krarchandler.cpp
index 0656744..ff7ab7f 100644
--- a/krusader/VFS/krarchandler.cpp
+++ b/krusader/VFS/krarchandler.cpp
@@ -752,6 +752,8 @@ TQString KRarcHandler::detectArchive( bool &encrypted, TQString fileName, bool c
encrypted = proc.isEncrypted();
}
}
+ else if( type == "xz" && (fileName.endsWith(".tar.xz") || fileName.endsWith(".txz")) )
+ type = "txz";
return type;
}
}
@@ -776,15 +778,6 @@ TQString KRarcHandler::detectArchive( bool &encrypted, TQString fileName, bool c
}
}
- if (fileName.endsWith(".tar.xz"))
- {
- return "txz";
- }
- else if (fileName.endsWith(".xz"))
- {
- return "xz";
- }
-
return TQString();
}