* 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:
Oliver Tappe
2011-01-22 19:30:21 +00:00
parent ea3e07b3f1
commit 11a4ecfd82
17 changed files with 218 additions and 69 deletions
+4 -4
View File
@@ -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;