summaryrefslogtreecommitdiffstats
path: root/BuildManager/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'BuildManager/package.py')
-rw-r--r--BuildManager/package.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/BuildManager/package.py b/BuildManager/package.py
index 1c88bd3..d324453 100644
--- a/BuildManager/package.py
+++ b/BuildManager/package.py
@@ -66,7 +66,7 @@ class _package:
if rc: return rc
return rpmVersionCompare(self.epoch, self.version, self.release,
pkg.epoch, pkg.version, pkg.release)
-
+
def _expand_log(self):
substdict = {"builddir":self.builddir,
"name":self.name,
@@ -94,7 +94,7 @@ class _package_spec(_package):
else:
ret.append(s[start:end+1])
return "".join(ret)
-
+
def _init(self):
self.spec = self.absfile
self.builddir = os.path.dirname(os.path.dirname(self.absfile))
@@ -170,7 +170,7 @@ class _package_rpm(_package):
if self.builddir:
self._expand_log()
return self._install_srpm()
-
+
def _builddir_create(self, unpackdir):
unpackdir = os.path.abspath(unpackdir)
builddir = "%s/%s-%s-%s-topdir" % (unpackdir, self.name, self.version, self.release)
@@ -179,7 +179,7 @@ class _package_rpm(_package):
raise BuildManagerPackageError("error creating builddir at %s" % builddir)
else:
return builddir
-
+
def _install_srpm(self):
cmd = "rpm -i --define '_topdir %s' %s &> %s"%(self.builddir,self.file,self.log)
status, output = subprocess.getstatusoutput(cmd)
@@ -217,7 +217,7 @@ class PackageList(UserList):
and mypkg <= pkg:
return 1
return 0
-
+
def has_eq(self, pkg):
for mypkg in self.data:
if mypkg.name == pkg.name \
@@ -225,7 +225,7 @@ class PackageList(UserList):
and mypkg == pkg:
return 1
return 0
-
+
def has_ge(self, pkg):
for mypkg in self.data:
if mypkg.name == pkg.name \