summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/pmipkg.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/oipkg/pmipkg.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/pmipkg.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp
index 2ed313c..cfaadbf 100644
--- a/noncore/unsupported/oipkg/pmipkg.cpp
+++ b/noncore/unsupported/oipkg/pmipkg.cpp
@@ -113,9 +113,9 @@ bool PmIpkg::runIpkg(const QString& args, const QString& dest )
pvDebug(2,QString(ret?"success\n":"failure\n"));
return ret;
}
-void PmIpkg::makeLinks(Package *pack)
+void PmIpkg::makeLinks(OipkgPackage *pack)
{
pvDebug( 2, "PmIpkg::makeLinks "+ pack->name());
QString pn = pack->name();
linkPackage( pack->packageName(), pack->dest() );
@@ -231,9 +231,9 @@ void PmIpkg::processLinkDir( QString file, QString dest )
}
void PmIpkg::loadList( PackageList *pl )
{
- for( Package *pack = pl->first();pack ; (pack = pl->next()) )
+ for( OipkgPackage *pack = pl->first();pack ; (pack = pl->next()) )
{
if ( pack && (pack->name() != "") && pack)
{
if ( pack->toInstall() )
@@ -290,9 +290,9 @@ void PmIpkg::remove()
if ( to_remove.count() == 0 ) return;
out(tr("Removing")+"\n"+tr("please wait")+"\n\n");
- QStringList *fileList;
+ QStringList *fileList = new QStringList;
for (uint i=0; i < to_remove.count(); i++)
{
if ( to_remove.at(i)->link() ) fileList = getList( to_remove.at(i)->name(), to_remove.at(i)->dest() );
if ( runIpkg("remove " + to_remove.at(i)->installName(), to_remove.at(i)->dest() ))
@@ -413,9 +413,9 @@ void PmIpkg::installFile(const QString &fileName, const QString &dest)
to_install.clear();
to_remove.clear();
pvDebug( 2,"PmIpkg::installFile "+ fileName);
- Package *p = new Package(fileName,settings);
+ OipkgPackage *p = new OipkgPackage(fileName,settings);
if ( dest!="") p->setDest( dest );
to_install.append( p );
commit();
delete p;
@@ -426,9 +426,9 @@ void PmIpkg::removeFile(const QString &fileName, const QString &dest)
to_install.clear();
to_remove.clear();
pvDebug( 2,"PmIpkg::removeFile "+ fileName);
- Package *p = new Package(fileName,settings);
+ OipkgPackage *p = new OipkgPackage(fileName,settings);
if ( dest!="") p->setDest( dest );
to_remove.append( p );
commit();
delete p;