summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/utils.cpp
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/utils.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/utils.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/noncore/settings/aqpkg/utils.cpp b/noncore/settings/aqpkg/utils.cpp
index 00607dd..be02b3a 100644
--- a/noncore/settings/aqpkg/utils.cpp
+++ b/noncore/settings/aqpkg/utils.cpp
@@ -1,9 +1,9 @@
1/* 1/*
2                This file is part of the OPIE Project 2                This file is part of the OPIE Project
3 3
4 =. Copyright (c) 2002 Andy Qua <andy.qua@blueyonder.co.uk> 4 =. Copyright (c) 2002 Andy Qua <andy.qua@blueyonder.co.uk>
5             .=l. Dan Williams <drw@handhelds.org> 5             .=l. Dan Williams <drw@handhelds.org>
6           .>+-= 6           .>+-=
7 _;:,     .>    :=|. This file is free software; you can 7 _;:,     .>    :=|. This file is free software; you can
8.> <`_,   >  .   <= redistribute it and/or modify it under 8.> <`_,   >  .   <= redistribute it and/or modify it under
9:`=1 )Y*s>-.--   : the terms of the GNU General Public 9:`=1 )Y*s>-.--   : the terms of the GNU General Public
@@ -24,15 +24,14 @@
24    --        :-=` Free Software Foundation, Inc., 24    --        :-=` Free Software Foundation, Inc.,
25 59 Temple Place - Suite 330, 25 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA. 26 Boston, MA 02111-1307, USA.
27 27
28*/ 28*/
29 29
30#include <stdio.h>
31#include <sys/vfs.h> 30#include <sys/vfs.h>
32 31
33#include "utils.h" 32#include "utils.h"
34#include "global.h" 33#include "global.h"
35 34
36Utils :: Utils() 35Utils :: Utils()
37{ 36{
38} 37}
@@ -46,22 +45,22 @@ QString Utils :: getPathfromIpkFilename( const QString &file )
46 int p = file.findRev( "/" ); 45 int p = file.findRev( "/" );
47 QString path = ""; 46 QString path = "";
48 if ( p != -1 ) 47 if ( p != -1 )
49 path = file.left( p ); 48 path = file.left( p );
50 49
51 return path; 50 return path;
52 51
53} 52}
54 53
55QString Utils :: getFilenameFromIpkFilename( const QString &file ) 54QString Utils :: getFilenameFromIpkFilename( const QString &file )
56{ 55{
57 int p = file.findRev( "/" ); 56 int p = file.findRev( "/" );
58 QString name = file; 57 QString name = file;
59 if ( p != -1 ) 58 if ( p != -1 )
60 name = name.mid( p + 1 ); 59 name = name.mid( p + 1 );
61 60
62 61
63 return name; 62 return name;
64} 63}
65 64
66QString Utils :: getPackageNameFromIpkFilename( const QString &file ) 65QString Utils :: getPackageNameFromIpkFilename( const QString &file )
67{ 66{