Fixed indentation for Python code
authorMario Domenech Goulart <mario@ossystems.com.br>
Thu, 30 Apr 2009 14:11:06 +0000 (11:11 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 21 May 2009 02:23:23 +0000 (23:23 -0300)
 - recipes/boost/boost-36.inc
 - recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb
 - recipes/gstreamer/gst-plugins-ugly_0.10.10.bb

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes/boost/boost-36.inc
recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb
recipes/gstreamer/gst-plugins-ugly_0.10.10.bb

index 5a4faaf..4bd065f 100644 (file)
@@ -43,18 +43,18 @@ S = "${WORKDIR}/${BOOST_P}"
 # Make a package for each library, plus -dev
 PACKAGES = "${PN}-dbg ${BOOST_PACKAGES}"
 python __anonymous () {
-       import bb
-
-       packages = []
-       extras = [] 
-       for lib in bb.data.getVar('BOOST_LIBS', d, 1).split( ):
-               pkg = "boost-%s" % lib.replace("_", "-")
-               extras.append("--with-%s" % lib)
-               packages.append(pkg)
-               if not bb.data.getVar("FILES_%s" % pkg, d, 1):
-                       bb.data.setVar("FILES_%s" % pkg, "${libdir}/libboost_%s*.so*" % lib, d)
-       bb.data.setVar("BOOST_PACKAGES", " ".join(packages), d)
-       bb.data.setVar("BJAM_EXTRA", " ".join(extras), d)
+    import bb
+
+    packages = []
+    extras = []
+    for lib in bb.data.getVar('BOOST_LIBS', d, 1).split( ):
+            pkg = "boost-%s" % lib.replace("_", "-")
+            extras.append("--with-%s" % lib)
+            packages.append(pkg)
+            if not bb.data.getVar("FILES_%s" % pkg, d, 1):
+                    bb.data.setVar("FILES_%s" % pkg, "${libdir}/libboost_%s*.so*" % lib, d)
+    bb.data.setVar("BOOST_PACKAGES", " ".join(packages), d)
+    bb.data.setVar("BJAM_EXTRA", " ".join(extras), d)
 }
 
 # Override the contents of specific packages
index 77c4184..545a43a 100644 (file)
@@ -10,8 +10,8 @@ SRC_URI = "\
 S = "${WORKDIR}/gst-plugins-ugly-${PV}"
 
 python() {
-       # Don't build, if we are building an ENTERPRISE distro
-       enterprise = bb.data.getVar("ENTERPRISE_DISTRO", d, 1)
-       if enterprise != "1":
-               raise bb.parse.SkipPackage("gst-plugins-ugly-sid will only build if ENTERPRISE_DISTRO == 1")
+    # Don't build, if we are building an ENTERPRISE distro
+    enterprise = bb.data.getVar("ENTERPRISE_DISTRO", d, 1)
+    if enterprise != "1":
+            raise bb.parse.SkipPackage("gst-plugins-ugly-sid will only build if ENTERPRISE_DISTRO == 1")
 }
index 0678e22..49350ed 100644 (file)
@@ -10,9 +10,9 @@ SRC_URI += "\
 "
 
 python() {
-       # Don't build, if we are building an ENTERPRISE distro
-       enterprise = bb.data.getVar("ENTERPRISE_DISTRO", d, 1)
-       if enterprise == "1":
-               raise bb.parse.SkipPackage("gst-plugins-ugly will only build if ENTERPRISE_DISTRO != 1")
+    # Don't build, if we are building an ENTERPRISE distro
+    enterprise = bb.data.getVar("ENTERPRISE_DISTRO", d, 1)
+    if enterprise == "1":
+            raise bb.parse.SkipPackage("gst-plugins-ugly will only build if ENTERPRISE_DISTRO != 1")
 }