author | tille <tille> | 2002-06-25 11:24:49 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-25 11:24:49 (UTC) |
commit | d282b4f9cba20305e237910aca531b0360666f13 (patch) (side-by-side diff) | |
tree | 38845ae936110de2b60fe67191d83ba5a2232726 /noncore/unsupported/oipkg/package.cpp | |
parent | 8b39fcc7dbc0579c27e42918974a407104dc9fac (diff) | |
download | opie-d282b4f9cba20305e237910aca531b0360666f13.zip opie-d282b4f9cba20305e237910aca531b0360666f13.tar.gz opie-d282b4f9cba20305e237910aca531b0360666f13.tar.bz2 |
getting the list file right now
Diffstat (limited to 'noncore/unsupported/oipkg/package.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/package.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp index 517b37a..8bbdd77 100644 --- a/noncore/unsupported/oipkg/package.cpp +++ b/noncore/unsupported/oipkg/package.cpp @@ -138,8 +138,16 @@ QString Package::installName() if (_useFileName) return _fileName; else return _name; } +QString Package::packageName() +{ + QString pn = installName(); + pn = pn.right(pn.length()-pn.findRev("/")); + pn = pn.left(pn.find("_")); + return pn; +} + bool Package::installed() { if (_status.contains("installed")) { |