2 * Copyright 2011, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Oliver Tappe <zooey@hirschkaefer.de>
10 #include <package/ActivateRepositoryCacheJob.h>
14 #include <package/Context.h>
17 namespace BPackageKit
{
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()
40 ActivateRepositoryCacheJob::Execute()
42 status_t result
= fFetchedRepoCacheEntry
.MoveTo(&fTargetDirectory
,
43 fRepositoryName
.String(), true);
47 // TODO: propagate some repository attributes to file attributes
53 } // namespace BPrivate
55 } // namespace BPackageKit