revert last change

This commit is contained in:
S.Çağlar Onur
2005-11-21 12:35:18 +00:00
parent fdb3072999
commit 8fe81d7d09
3 changed files with 6 additions and 2 deletions
+1
View File
@@ -177,6 +177,7 @@ def configure_pending():
pkginfo = A[x]
pkgname = util.package_name(x, pkginfo.version,
pkginfo.release,
pkginfo.build,
False)
pkg_path = util.join_path(ctx.config.lib_dir(),
pkgname)
+2 -1
View File
@@ -624,7 +624,8 @@ class Builder:
name = util.package_name(package.name,
self.spec.source.version,
self.spec.source.release)
self.spec.source.release,
self.metadata.package.build)
pkg = Package(name, 'w')
package_names.append(name)
+3 -1
View File
@@ -494,8 +494,10 @@ def clean_locks(top = '.'):
# Package/Repository Related Functions #
########################################
def package_name(name, version, release, prependSuffix=True):
def package_name(name, version, release, build, prependSuffix=True):
fn = name + '-' + version + '-' + release
if build:
fn += '-' + str(build)
if prependSuffix:
fn += ctx.const.package_suffix
return fn