summaryrefslogtreecommitdiffstats
path: root/redhat/applications/krusader
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-09-08 12:17:12 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-09-08 12:17:12 +0200
commit9165f598d04efce920663e40b398c4388d585d43 (patch)
treee7baa4e798326604a9082c856e4d5f4d1ea9f85b /redhat/applications/krusader
parentc51008ebee10edfbccb321d9e473c6b6c24a8e80 (diff)
downloadtde-packaging-9165f598d04efce920663e40b398c4388d585d43.tar.gz
tde-packaging-9165f598d04efce920663e40b398c4388d585d43.zip
RPM Packaging: updates for 3.5.13.2
Diffstat (limited to 'redhat/applications/krusader')
-rw-r--r--redhat/applications/krusader/krusader-3.5.13.2-tmpvfs-ftbfs.patch62
-rw-r--r--redhat/applications/krusader/krusader-3.5.13.2.spec2
2 files changed, 63 insertions, 1 deletions
diff --git a/redhat/applications/krusader/krusader-3.5.13.2-tmpvfs-ftbfs.patch b/redhat/applications/krusader/krusader-3.5.13.2-tmpvfs-ftbfs.patch
new file mode 100644
index 000000000..eb1f41ffd
--- /dev/null
+++ b/redhat/applications/krusader/krusader-3.5.13.2-tmpvfs-ftbfs.patch
@@ -0,0 +1,62 @@
+diff --git a/krusader/VFS/temp_vfs.cpp b/krusader/VFS/temp_vfs.cpp
+index 25f3a15..ee68521 100644
+--- a/krusader/VFS/temp_vfs.cpp
++++ b/krusader/VFS/temp_vfs.cpp
+@@ -56,7 +56,7 @@ temp_vfs::temp_vfs( TQString origin, TQString type, TQWidget* panel, bool ):
+ }
+
+ temp_vfs::~temp_vfs(){
+- if( vfs_type == "-iso" ){
++ if( tmpvfs_type == ISO ){
+ // unmount the ISO image
+ KShellProcess umount;
+ umount << "umount -f" << tmpDir;
+@@ -94,6 +94,13 @@ bool temp_vfs::vfs_refresh(const KURL& origin){
+ }
+
+ void temp_vfs::handleAceArj(TQString origin, TQString type){
++ if (type == "-ace") {
++ tmpvfs_type = ACE;
++ }
++ else if (type == "-arj") {
++ tmpvfs_type = ARJ;
++ }
++
+ // for ace and arj we just unpack to the tmpDir
+ if( !KRarcHandler::arcHandled(type) ){
+ if (!quietMode) KMessageBox::error(krApp,"This archive type is NOT supported");
+@@ -117,6 +124,7 @@ void temp_vfs::handleRpm(TQString origin){
+ rpm.clearArguments();
+ rpm << "rpm -lpq"<<"\""+origin+"\""+" > "+tmpDir+"/filelist.txt";
+ rpm.start(KProcess::Block);
++ tmpvfs_type = RPM;
+ }
+
+ void temp_vfs::handleIso(TQString origin){
+@@ -124,4 +132,5 @@ void temp_vfs::handleIso(TQString origin){
+ KShellProcess mount;
+ mount << KrServices::fullPathName( "mount" ) << "-o loop" << origin << tmpDir;
+ mount.start(KProcess::Block);
++ tmpvfs_type = ISO;
+ }
+diff --git a/krusader/VFS/temp_vfs.h b/krusader/VFS/temp_vfs.h
+index 3b94248..d35169b 100644
+--- a/krusader/VFS/temp_vfs.h
++++ b/krusader/VFS/temp_vfs.h
+@@ -37,6 +37,8 @@
+
+ class temp_vfs : public normal_vfs {
+ public:
++ enum TMPVFS_TYPE{ERROR=0,ACE,ARJ,RPM,ISO};
++
+ temp_vfs( TQString origin, TQString type, TQWidget* panel, bool writeable);
+ ~temp_vfs();
+ TQString vfs_workingDir();
+@@ -50,6 +52,7 @@ protected:
+ void handleAceArj(TQString origin, TQString type);
+ void handleRpm(TQString origin);
+ void handleIso(TQString origin);
++ TMPVFS_TYPE tmpvfs_type; //< the tmp vfs type.
+ TQString tmpDir;
+
+ };
diff --git a/redhat/applications/krusader/krusader-3.5.13.2.spec b/redhat/applications/krusader/krusader-3.5.13.2.spec
index 2df09636c..a5e2f7623 100644
--- a/redhat/applications/krusader/krusader-3.5.13.2.spec
+++ b/redhat/applications/krusader/krusader-3.5.13.2.spec
@@ -41,7 +41,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
-Patch0: krusader-tmpvfs-ftbfs.diff
+Patch0: krusader-3.5.13.2-tmpvfs-ftbfs.patch
BuildRequires: trinity-tqtinterface-devel >= %{tde_version}
BuildRequires: trinity-arts-devel >= 1:1.5.10