Commits

Anonymous committed 962899d

more defaults, need less in the default recipe

  • Participants
  • Parent commits db8226b

Comments (0)

Files changed (3)

 	recp.doBuild(ourBuildDir)
 
 	rootDir = "/var/tmp/srs/%s-%d" % (recp.name, int(time.time()))
-        util.mkdirChain(rootDir, 0700)
+        util.mkdirChain(rootDir)
 	recp.doInstall(ourBuildDir, rootDir)
 
-	pkgSet = recp.packages(rootDir)
+        recp.packages(rootDir)
+        pkgSet = recp.getPackageSet()
 
 	for (name, buildPkg) in pkgSet.packageSet():
 	    fileList = []
 import imp, sys, types
 import os
 import util
+import build
+import package
 
 class RecipeLoader(types.DictionaryType):
     def __init__(self, file):
     def doInstall(self, builddir, root):
 	self.install.doInstall(builddir + "/" + self.mainDir(), root)
 
+    def packages(self, root):
+        self.packageSet = package.Auto(self.name, root)
+
+    def getPackageSet(self):
+        return self.packageSet
+
     def __init__(self):
 	self.tarballs = []
 	self.patches = []
 	self.theMainDir = self.name + "-" + self.version
+	self.build = build.Make()

examples/tmpwatch.recipe

     version = "2.9.0"
 
     def setup(self):
-	self.addTarball("tmpwatch-%s.tar.gz" % self.version)
-	self.build = build.Make()
+	self.addTarball("%s-%s.tar.gz" % (self.name, self.version))
 	self.install = build.MakeInstall(rootVar = "ROOT")
-
-    def packages(self, root):
-	return package.Auto("tmpwatch", root)