Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 7750 Details for
Bug 14759
Some zip files is shown wrong with the kzip kioslave
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The patch for kzip.cpp file
kdelibs-3.1-kzip.patch (text/plain), 2.84 KB, created by
Raul Fernandes
on 2003-01-29 19:29:50 UTC
(
hide
)
Description:
The patch for kzip.cpp file
Filename:
MIME Type:
Creator:
Raul Fernandes
Created:
2003-01-29 19:29:50 UTC
Size:
2.84 KB
patch
obsolete
>diff -u -r kio/kio/kzip.cpp kio/kio/kzip.cpp >--- kio/kio/kzip.cpp 2003-01-03 02:58:47.000000000 -0200 >+++ kio/kio/kzip.cpp 2003-01-29 22:16:15.000000000 -0200 >@@ -332,27 +332,43 @@ > > KArchiveEntry* entry; > if ( isdir ) >- entry = new KArchiveDirectory( this, entryName, access, time, rootDir()->user(), rootDir()->group(), QString::null ); >+ { >+ QString path = QDir::cleanDirPath( name.left( pos ) ); >+ KArchiveEntry* ent = rootDir()->entry( path ); >+ if ( ent && ent->isDirectory() ) >+ { >+ //kdDebug(7040) << "Directory already exists, NOT going to add it again" << endl; >+ entry = 0L; >+ } >+ else >+ { >+ entry = new KArchiveDirectory( this, entryName, access, time, rootDir()->user(), rootDir()->group(), QString::null ); >+ //kdDebug(7040) << "KArchiveDirectory created, entryName= " << entryName << ", name=" << name << endl; >+ } >+ } > else > { > entry = new KZipFileEntry( this, entryName, access, time, rootDir()->user(), rootDir()->group(), QString::null, >- name, dataoffset, ucsize, cmethod, csize ); >+ name, dataoffset, ucsize, cmethod, csize ); > static_cast<KZipFileEntry *>(entry)->setHeaderStart( localheaderoffset ); >- //kdDebug(7040) << "KZipFileEntry created" << endl; >+ //kdDebug(7040) << "KZipFileEntry created, entryName= " << entryName << ", name=" << name << endl; > d->m_fileList.append( static_cast<KZipFileEntry *>( entry ) ); > } > >- if ( pos == -1 ) >- { >- rootDir()->addEntry(entry); >- } >- else >- { >- // In some tar files we can find dir/./file => call cleanDirPath >- QString path = QDir::cleanDirPath( name.left( pos ) ); >- // Ensure container directory exists, create otherwise >- KArchiveDirectory * tdir = findOrCreate( path ); >- tdir->addEntry(entry); >+ if ( entry ) >+ { >+ if ( pos == -1 ) >+ { >+ rootDir()->addEntry(entry); >+ } >+ else >+ { >+ // In some tar files we can find dir/./file => call cleanDirPath >+ QString path = QDir::cleanDirPath( name.left( pos ) ); >+ // Ensure container directory exists, create otherwise >+ KArchiveDirectory * tdir = findOrCreate( path ); >+ tdir->addEntry(entry); >+ } > } > > //calculate offset to next entry
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14759
:
7749
| 7750