author | tille <tille> | 2002-05-12 14:06:06 (UTC) |
---|---|---|
committer | tille <tille> | 2002-05-12 14:06:06 (UTC) |
commit | f388350086510b261c496c232da7302f4ec81cc3 (patch) (unidiff) | |
tree | 472aad42f650028bfd7fae66be6a19f37e2a26e0 /noncore/unsupported/oipkg/package.cpp | |
parent | c1f023c19bbee54a3a0575bd6035b133592edcfc (diff) | |
download | opie-f388350086510b261c496c232da7302f4ec81cc3.zip opie-f388350086510b261c496c232da7302f4ec81cc3.tar.gz opie-f388350086510b261c496c232da7302f4ec81cc3.tar.bz2 |
fixed filename for remote files
Diffstat (limited to 'noncore/unsupported/oipkg/package.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/package.cpp | 4 |
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 | |||
@@ -47,12 +47,13 @@ Package::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 | ||
@@ -339,13 +340,14 @@ QString Package::dest() | |||
339 | return _dest!=""?_dest:settings->getDestinationName(); | 340 | return _dest!=""?_dest:settings->getDestinationName(); |
340 | else return ""; | 341 | else return ""; |
341 | } | 342 | } |
342 | 343 | ||
343 | void Package::setDest( QString d ) | 344 | void Package::setDest( QString d ) |
344 | { | 345 | { |
345 | _dest = d; | 346 | if ( d == "remote") _useFileName = true; |
347 | else _dest = d; | ||
346 | } | 348 | } |
347 | 349 | ||
348 | void Package::setOn() | 350 | void Package::setOn() |
349 | { | 351 | { |
350 | _toProcess = true; | 352 | _toProcess = true; |
351 | } | 353 | } |