summaryrefslogtreecommitdiffstats
path: root/kpackage/debInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpackage/debInterface.cpp')
-rw-r--r--kpackage/debInterface.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kpackage/debInterface.cpp b/kpackage/debInterface.cpp
index 41146fe..8ad5226 100644
--- a/kpackage/debInterface.cpp
+++ b/kpackage/debInterface.cpp
@@ -123,11 +123,11 @@ bool DEB::parseName(const TQString &name, TQString *n, TQString *v)
{
int d1, d2, s1;
- s1 = name.findRev('.');
+ s1 = name.tqfindRev('.');
if (s1 > 0) {
- d2 = name.findRev('-',s1-1);
+ d2 = name.tqfindRev('-',s1-1);
if (d2 > 0) {
- d1 = name.findRev('_',d2-1);
+ d1 = name.tqfindRev('_',d2-1);
if (d1 < 0)
d1 = d2;
*n = name.left(d1);
@@ -155,7 +155,7 @@ void DEB::listPackList(TQPtrList<packageInfo> *pki, const TQString &fname, cache
local = u.isLocalFile();
}
- kpackage->setStatus(sline);
+ kpackage->settqStatus(sline);
kpackage->setPercent(0);
TQFile file(STATUS);
@@ -248,7 +248,7 @@ packageInfo *DEB::getIRPackageInfo( const TQString &name)
TQStringList list = kpty->run(s);
for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) {
// kdDebug() << "U=" << *it << "\n";
- if ((*it).find("Package:") >= 0) {
+ if ((*it).tqfind("Package:") >= 0) {
kdDebug() << "found\n";
while (it != list.begin()) {
list.remove(list.begin());
@@ -280,7 +280,7 @@ packageInfo *DEB::getUPackageInfo( const TQString &name)
TQStringList list = kpty->run(s);
for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) {
// kdDebug() << "U=" << *it << "\n";
- if ((*it).find("Package:") >= 0) {
+ if ((*it).tqfind("Package:") >= 0) {
// kdDebug() << "found\n";
while (it != list.begin()) {
list.remove(list.begin());
@@ -316,7 +316,7 @@ packageInfo *DEB::collectInfo(TQStringList &ln, pkgInterface *pkgInt)
for ( TQStringList::Iterator it = ln.begin(); it != ln.end(); ++it ) {
loop:
- int col = (*it).find(':');
+ int col = (*it).tqfind(':');
key = ((*it).left(col)).lower();
if (key[0] == ' ') {
key.remove(0,1);
@@ -354,7 +354,7 @@ packageInfo *DEB::collectInfo(TQStringList &ln, pkgInterface *pkgInt)
} else if (key == "section") {
a.insert("group", val);
} else if (key == "status") {
- if ((val.find("not-installed") >= 0) || (val.find("config-files") >= 0)) {
+ if ((val.tqfind("not-installed") >= 0) || (val.tqfind("config-files") >= 0)) {
return 0;
}
if (val != "install ok installed" &&
@@ -492,7 +492,7 @@ TQStringList DEB::getUFileList(const TQString &fn)
it != filelist.end(); ++it ) {
// kdDebug() << "F=" << *it << "\n";
if (pt < 0) {
- pt = (*it).findRev(' ');
+ pt = (*it).tqfindRev(' ');
}
(*it) = (*it).mid(pt + 1);
}
@@ -509,14 +509,14 @@ TQStringList DEB::FindFile(const TQString &name, bool)
TQStringList filelist = kpty->run(s);
for ( TQStringList::Iterator it = filelist.begin(); it != filelist.end(); ++it ) {
- int p = (*it).find(": ");
+ int p = (*it).tqfind(": ");
if( p !=-1 )
- (*it).replace(p, 2, "\t");
+ (*it).tqreplace(p, 2, "\t");
}
if (filelist.count() == 1) {
TQStringList::Iterator it = filelist.begin();
- if ((*it).find("not found") >= 0) {
+ if ((*it).tqfind("not found") >= 0) {
filelist.remove(it);
}
}