summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/package.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/package.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/package.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp
index f992641..9280d89 100644
--- a/noncore/unsupported/oipkg/package.cpp
+++ b/noncore/unsupported/oipkg/package.cpp
@@ -39,25 +39,24 @@ Package::Package( QStringList pack, PackageManagerSettings *s )
39 init(s); 39 init(s);
40 parsePackage( pack ); 40 parsePackage( pack );
41} 41}
42 42
43Package::Package( QString n, PackageManagerSettings *s ) 43Package::Package( QString n, PackageManagerSettings *s )
44 { 44 {
45 init(s); 45 init(s);
46 if ( !QFile::exists( n ) ) 46 if ( !QFile::exists( n ) )
47 { 47 {
48 _name = QString( n ); 48 _name = QString( n );
49 }else{ 49 }else{
50 parseIpkgFile( n ); 50 parseIpkgFile( n );
51 _toProcess = true;
52 _useFileName = true; 51 _useFileName = true;
53 _fileName = QString( n ); 52 _fileName = QString( n );
54 } 53 }
55} 54}
56 55
57Package::Package( Package *pi ) 56Package::Package( Package *pi )
58{ 57{
59 init(pi->settings); 58 init(pi->settings);
60 copyValues( pi ); 59 copyValues( pi );
61} 60}
62 61
63 62
@@ -357,12 +356,17 @@ void Package::instalFromFile(bool iff)
357 _useFileName = iff; 356 _useFileName = iff;
358} 357}
359 358
360void Package::setName(QString n) 359void Package::setName(QString n)
361{ 360{
362 _displayName = n; 361 _displayName = n;
363} 362}
364 363
365QDict<QString>* Package::getFields() 364QDict<QString>* Package::getFields()
366{ 365{
367 return &_values; 366 return &_values;
368} 367}
368
369QString Package::status()
370{
371 return _status;
372}