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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/package.cpp b/noncore/unsupported/oipkg/package.cpp
index 4542e42..8c5f0ea 100644
--- a/noncore/unsupported/oipkg/package.cpp
+++ b/noncore/unsupported/oipkg/package.cpp
@@ -41,24 +41,25 @@ Package::Package( QStringList pack, PackageManagerSettings *s )
41 { 41 {
42 init(s); 42 init(s);
43 parsePackage( pack ); 43 parsePackage( pack );
44} 44}
45 45
46Package::Package( QString n, PackageManagerSettings *s ) 46Package::Package( QString n, PackageManagerSettings *s )
47 { 47 {
48 init(s); 48 init(s);
49 if ( !QFile::exists( n ) ) 49 if ( !QFile::exists( n ) )
50 { 50 {
51 _name = QString( n ); 51 _name = QString( n );
52 }else{ 52 }else{
53 pvDebug(2,"remote file: "+n);
53 parseIpkgFile( n ); 54 parseIpkgFile( n );
54 _useFileName = true; 55 _useFileName = true;
55 _fileName = QString( n ); 56 _fileName = QString( n );
56 } 57 }
57} 58}
58 59
59Package::Package( Package *pi ) 60Package::Package( Package *pi )
60{ 61{
61 init(pi->settings); 62 init(pi->settings);
62 copyValues( pi ); 63 copyValues( pi );
63} 64}
64 65
@@ -333,25 +334,26 @@ void Package::processed()
333 else _status = "installed"; 334 else _status = "installed";
334} 335}
335 336
336QString Package::dest() 337QString Package::dest()
337{ 338{
338 if ( installed()||(!installed() && _toProcess) ) 339 if ( installed()||(!installed() && _toProcess) )
339 return _dest!=""?_dest:settings->getDestinationName(); 340 return _dest!=""?_dest:settings->getDestinationName();
340 else return ""; 341 else return "";
341} 342}
342 343
343void Package::setDest( QString d ) 344void Package::setDest( QString d )
344{ 345{
345 _dest = d; 346 if ( d == "remote") _useFileName = true;
347 else _dest = d;
346} 348}
347 349
348void Package::setOn() 350void Package::setOn()
349{ 351{
350 _toProcess = true; 352 _toProcess = true;
351} 353}
352 354
353bool Package::link() 355bool Package::link()
354{ 356{
355 if ( _dest == "root" || (!installed() && !_toProcess) ) return false; 357 if ( _dest == "root" || (!installed() && !_toProcess) ) return false;
356 return _link; 358 return _link;
357} 359}