Commit 668a01fe authored by Rafi Yanai's avatar Rafi Yanai
Browse files

DEB packages support

parent 9e71e58c
......@@ -65,9 +65,11 @@ KgArchives::KgArchives( bool first, QWidget* parent, const char* name ) :
{"Archives","Do Unarj", _DoArj, i18n( "Arj" ), false, ""},
{"Archives","Do RPM", _DoRPM, i18n( "Rpm" ), false, ""},
{"Archives","Do UnAce", _DoUnAce, i18n( "Ace" ), false, ""},
{"Archives","Do Lha", _DoLha, i18n( "Lha" ), false, ""}};
{"Archives","Do Lha", _DoLha, i18n( "Lha" ), false, ""},
{"Archives","Do DEB", _DoDEB, i18n( "Deb" ), false, ""}
};
cbs = createCheckBoxGroup( 3, 0, packers, 9, generalGrp );
cbs = createCheckBoxGroup( 3, 0, packers, 10, generalGrp );
generalGrid->addWidget( cbs, 1, 0 );
addLabel( generalGrid, 2, 0, i18n( "The archives that are \"greyed-out\" were unavailable on your\nsystem last time Krusader checked. If you wish Krusader to\nsearch again, click the 'Auto Configure' button." ),
......@@ -129,6 +131,7 @@ void KgArchives::disableNonExistingPackers()
cbs->find( "Do UnRar" )->setEnabled(PS("unrar") || PS("rar") );
cbs->find( "Do UnAce" )->setEnabled(PS("unace"));
cbs->find( "Do Unarj" )->setEnabled(PS("unarj") || PS("arj") );
cbs->find( "Do DEB" )->setEnabled(PS("dpkg") && PS("tar") );
krConfig->setGroup( "Archives" );
krConfig->writeEntry( "Supported Packers", lst );
......
......@@ -111,6 +111,7 @@ KrArchiverResultTable::KrArchiverResultTable(QWidget* parent)
Archiver* rar = new Archiver("rar", "http://www.rarsoft.com", PS("rar"), true, true);
Archiver* unrar = new Archiver("unrar", "http://www.rarsoft.com", PS("unrar"), false, true);
Archiver* rpm = new Archiver("rpm", "http://www.gnu.org", PS("rpm"), false, true);
Archiver* dpkg = new Archiver("dpkg", "http://www.dpkg.org", PS("dpkg"), false, true);
// Special case: arj can unpack, but unarj is prefered
if(PS("arj") && PS("unarj"))
......@@ -145,6 +146,7 @@ KrArchiverResultTable::KrArchiverResultTable(QWidget* parent)
addRow(rar, _grid);
addRow(unrar, _grid);
addRow(rpm, _grid);
addRow(dpkg, _grid);
delete tar;
delete gzip;
......@@ -158,6 +160,7 @@ KrArchiverResultTable::KrArchiverResultTable(QWidget* parent)
delete rar;
delete unrar;
delete rpm;
delete dpkg;
}
KrArchiverResultTable::~KrArchiverResultTable()
......
This diff is collapsed.
......@@ -42,7 +42,7 @@ vfs::VFS_TYPE KrVfsHandler::getVfsType(const KURL& url){
return vfs::NORMAL;
}
else{
if(url.protocol() == "virt") return vfs::VIRT;
if(url.protocol() == "virt_old") return vfs::VIRT;
else return vfs::FTP;
}
return vfs::ERROR;
......
......@@ -169,13 +169,15 @@
#define _DoUnRar true
// Do UnAce ///////////
#define _DoUnAce true
// Do Arj ///////////// ====> new
// Do Arj /////////////
#define _DoArj true
// Do UnArj /////////// ====> new
// Do UnArj ///////////
#define _DoUnarj true
// Do RPM ///////////// ====> new
// Do RPM /////////////
#define _DoRPM true
// Do Lha ///////////// ====> new
// Do DEB ///////////// ====> new
#define _DoDEB true
// Do Lha /////////////
#define _DoLha true
// Allow Move Into Archive //
#define _MoveIntoArchive false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment