* added support for interactive decisions to package kit and pkgman
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40268 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -20,10 +20,10 @@ namespace Haiku {
|
||||
namespace Package {
|
||||
|
||||
|
||||
FetchFileJob::FetchFileJob(const BString& title, const BString& fileURL,
|
||||
const BEntry& targetEntry)
|
||||
FetchFileJob::FetchFileJob(const Context& context, const BString& title,
|
||||
const BString& fileURL, const BEntry& targetEntry)
|
||||
:
|
||||
inherited(title),
|
||||
inherited(context, title),
|
||||
fFileURL(fileURL),
|
||||
fTargetEntry(targetEntry)
|
||||
{
|
||||
@@ -50,7 +50,7 @@ FetchFileJob::Execute()
|
||||
int cmdResult = system(cmd.String());
|
||||
if (WIFSIGNALED(cmdResult)
|
||||
&& (WTERMSIG(cmdResult) == SIGINT || WTERMSIG(cmdResult) == SIGQUIT)) {
|
||||
return B_INTERRUPTED;
|
||||
return B_CANCELED;
|
||||
}
|
||||
|
||||
return cmdResult == 0 ? B_OK : B_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user