BPicture: Fix archive constructor.
[haiku.git] / src / kits / package / ActivateRepositoryCacheJob.cpp
blobfdede8c97289e8e1a2e3afe1e3a585ba45eefaa2
1 /*
2 * Copyright 2011, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Oliver Tappe <zooey@hirschkaefer.de>
7 */
10 #include <package/ActivateRepositoryCacheJob.h>
12 #include <File.h>
14 #include <package/Context.h>
17 namespace BPackageKit {
19 namespace BPrivate {
22 ActivateRepositoryCacheJob::ActivateRepositoryCacheJob(const BContext& context,
23 const BString& title, const BEntry& fetchedRepoCacheEntry,
24 const BString& repositoryName, const BDirectory& targetDirectory)
26 inherited(context, title),
27 fFetchedRepoCacheEntry(fetchedRepoCacheEntry),
28 fRepositoryName(repositoryName),
29 fTargetDirectory(targetDirectory)
34 ActivateRepositoryCacheJob::~ActivateRepositoryCacheJob()
39 status_t
40 ActivateRepositoryCacheJob::Execute()
42 status_t result = fFetchedRepoCacheEntry.MoveTo(&fTargetDirectory,
43 fRepositoryName.String(), true);
44 if (result != B_OK)
45 return result;
47 // TODO: propagate some repository attributes to file attributes
49 return B_OK;
53 } // namespace BPrivate
55 } // namespace BPackageKit