summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-10 16:34:59 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-07-10 16:34:59 +0900
commitd8136c65426f8ee1aef7bc4ed34acea556b8f242 (patch)
tree96e5c40c52a4190eda69b86aca6f8bf87fb22f50
parent09fd7e0c44303da4e965f9ab743237fa1c22296f (diff)
downloadbuildstream-d8136c65426f8ee1aef7bc4ed34acea556b8f242.tar.gz
_artifactcache.py: Moved into submodule with __init__.py
-rw-r--r--buildstream/_artifactcache/__init__.py21
-rw-r--r--buildstream/_artifactcache/artifactcache.py (renamed from buildstream/_artifactcache.py)6
2 files changed, 24 insertions, 3 deletions
diff --git a/buildstream/_artifactcache/__init__.py b/buildstream/_artifactcache/__init__.py
new file mode 100644
index 000000000..3f19ddd19
--- /dev/null
+++ b/buildstream/_artifactcache/__init__.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python3
+#
+# Copyright (C) 2017 Codethink Limited
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library. If not, see <http://www.gnu.org/licenses/>.
+#
+# Authors:
+# Tristan Van Berkom <tristan.vanberkom@codethink.co.uk>
+
+from .artifactcache import ArtifactCache, ArtifactError
diff --git a/buildstream/_artifactcache.py b/buildstream/_artifactcache/artifactcache.py
index 956581737..2d3571b98 100644
--- a/buildstream/_artifactcache.py
+++ b/buildstream/_artifactcache/artifactcache.py
@@ -21,9 +21,9 @@
import os
import tempfile
-from . import _ostree, utils
-from .exceptions import _BstError
-from ._ostree import OSTreeError
+from .. import _ostree, utils
+from ..exceptions import _BstError
+from .._ostree import OSTreeError
# For users of this file, they must expect (except) it.