aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'roverlay/manifest/__init__.py')
-rw-r--r--roverlay/manifest/__init__.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/roverlay/manifest/__init__.py b/roverlay/manifest/__init__.py
new file mode 100644
index 0000000..b95a855
--- /dev/null
+++ b/roverlay/manifest/__init__.py
@@ -0,0 +1,29 @@
+# R Overlay -- Manifest creation for ebuilds
+# Copyright 2006-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+import logging
+
+from roverlay.manifest import helpers
+
+_MANIFEST_IMPLEMENTATION = helpers.ExternalManifestCreation
+
+
+def create_manifest ( package_info, nofail=False ):
+ """Creates a Manifest for package_info, using the <<best>> implementation
+ available.
+
+ current implementation: ExternalManifestCreation (using ebuild(1))
+
+ arguments:
+ * package_info --
+ * nofail -- catch exceptions and return False
+ """
+ try:
+ return _MANIFEST_IMPLEMENTATION.do ( package_info )
+ except Exception as e:
+ logging.exception ( e )
+ if nofail:
+ return False
+ else:
+ raise
+# --- end of create_manifest (...) ---