diff options
Diffstat (limited to 'x11/kdelibs4/files')
-rw-r--r-- | x11/kdelibs4/files/patch-kdeprint::imagetops | 25 | ||||
-rw-r--r-- | x11/kdelibs4/files/patch-kio::job.cpp | 11 |
2 files changed, 36 insertions, 0 deletions
diff --git a/x11/kdelibs4/files/patch-kdeprint::imagetops b/x11/kdelibs4/files/patch-kdeprint::imagetops new file mode 100644 index 000000000000..518e0b981e59 --- /dev/null +++ b/x11/kdelibs4/files/patch-kdeprint::imagetops @@ -0,0 +1,25 @@ +--- kdeprint/filters/imagetops.orig Wed Nov 28 12:25:21 2001 ++++ kdeprint/filters/imagetops Wed Nov 28 12:29:50 2001 +@@ -27,11 +27,17 @@ + # check the file mime type, and set the command correspondingly + cmd= + magic=`file -bi $FILE` +-if [[ $magic != image/* ]] ; then +- echo "Not an image" +- exit 1; +-fi +-case ${magic/image\//} in ++ ++case $magic in ++ image/*) ++ ;; ++ *) ++ echo "Not an image" ++ exit 1; ++ ;; ++esac ++ ++case ${magic##image\/} in + jpeg) + cmd="djpeg -pnm" + ;; diff --git a/x11/kdelibs4/files/patch-kio::job.cpp b/x11/kdelibs4/files/patch-kio::job.cpp new file mode 100644 index 000000000000..113a0eb1a13e --- /dev/null +++ b/x11/kdelibs4/files/patch-kio::job.cpp @@ -0,0 +1,11 @@ +--- kio/job.cpp.20011019 Fri Oct 19 16:09:57 2001 ++++ kio/job.cpp Tue Oct 30 21:49:15 2001 +@@ -2472,7 +2472,7 @@ + // But for files coming from TAR, we want to preserve permissions -> we use default perms only if from remote + // The real fix would be KProtocolInfo::inputType(protocol) == T_FILESYSTEM, but we can't access ksycoca from here ! + bool remoteSource = !(*it).uSource.isLocalFile() && ((*it).uSource.protocol() != "tar"); // HACK +- mode_t permissions = ( remoteSource && (*it).uDest.isLocalFile() ) ? (mode_t)-1 : (*it).permissions; ++ int permissions = ( remoteSource && (*it).uDest.isLocalFile() ) ? -1 : (*it).permissions; + KIO::FileCopyJob * copyJob = KIO::file_copy( (*it).uSource, (*it).uDest, permissions, bOverwrite, false, false/*no GUI*/ ); + copyJob->setSourceSize( (*it).size ); + newjob = copyJob; |