Lines Matching refs:err

49 #define ERR2(x, y...)	fprintf(stderr, "WorkerThread: "x" %s\n", y, strerror(err))
50 #define ERR(x) fprintf(stderr, "WorkerThread: "x" %s\n", strerror(err))
347 status_t err = B_OK;
355 return _InstallationError(err);
363 if ((err = partition->Mount()) < B_OK) {
366 return _InstallationError(err);
369 if ((err = partition->GetVolume(&targetVolume)) != B_OK) {
371 return _InstallationError(err);
373 if ((err = partition->GetMountPoint(&targetDirectory)) != B_OK) {
375 return _InstallationError(err);
379 if ((err = device.Mount()) < B_OK) {
382 return _InstallationError(err);
385 if ((err = device.GetVolume(&targetVolume)) != B_OK) {
387 return _InstallationError(err);
389 if ((err = device.GetMountPoint(&targetDirectory)) != B_OK) {
391 return _InstallationError(err);
394 return _InstallationError(err); // shouldn't happen
405 return _InstallationError(err);
410 if ((err = partition->GetMountPoint(&srcDirectory)) != B_OK) {
412 return _InstallationError(err);
415 if ((err = device.GetMountPoint(&srcDirectory)) != B_OK) {
417 return _InstallationError(err);
420 return _InstallationError(err); // shouldn't happen
426 return _InstallationError(err);
438 return _InstallationError(err);
478 err = _PrepareCleanInstall(targetDirectory);
479 if (err != B_OK)
480 return _InstallationError(err);
494 err = _CreateDefaultIndices(targetDirectory);
495 if (err != B_OK)
496 return _InstallationError(err);
499 err = _MirrorIndices(srcDirectory, targetDirectory);
500 if (err != B_OK)
501 return _InstallationError(err);
505 err = engine.CollectTargets(srcDirectory.Path(), fCancelSemaphore);
506 if (err != B_OK)
507 return _InstallationError(err);
515 err = pkgPath.InitCheck();
516 if (err != B_OK)
517 return _InstallationError(err);
518 err = engine.CollectTargets(pkgPath.Path(), fCancelSemaphore);
519 if (err != B_OK)
520 return _InstallationError(err);
525 err = _ProcessZipPackages(srcDirectory.Path(), targetDirectory.Path(),
527 if (err != B_OK)
528 return _InstallationError(err);
533 err = engine.Copy(srcDirectory.Path(), targetDirectory.Path(),
535 if (err != B_OK)
536 return _InstallationError(err);
544 err = targetPkgDir.InitCheck();
545 if (err != B_OK)
546 return _InstallationError(err);
550 err = pkgPath.InitCheck();
551 if (err != B_OK)
552 return _InstallationError(err);
554 err = targetPath.InitCheck();
555 if (err != B_OK)
556 return _InstallationError(err);
557 err = engine.Copy(pkgPath.Path(), targetPath.Path(),
559 if (err != B_OK)
560 return _InstallationError(err);
569 if (err == B_OK)
570 err = engine->UnzipPackage();
573 if (err != B_OK)
574 return _InstallationError(err);
576 err = _WriteBootSector(targetDirectory);
577 if (err != B_OK)
578 return _InstallationError(err);
580 err = _LaunchFinishScript(targetDirectory);
581 if (err != B_OK)
582 return _InstallationError(err);