Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes for installing from ref repo #156

Merged
merged 1 commit into from
Feb 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmsBuild
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def install_reference(pkg):
args = {"cmsroot": pkg.options.workDir, "refroot": pkg.options.reference, "cmsplatf": pkg.options.architecture}
args['pkgdir'] = join(pkg.options.architecture, *pkg_parts)
tmp_path = join(pkg.options.tempdir, "reference", pkg.pkgName())
makedirs(tmp_path)
makedirs(join(tmp_path,"BUILDROOT"))
tmp_spec = join(tmp_path, "package.spec")
spec = open(tmp_spec, "w")
infoReg = re.compile("^(Name|Version|Release|Group|License|Packager|Vendor|Summary)\s*:.*")
Expand All @@ -219,7 +219,7 @@ def install_reference(pkg):
spec.write("Prefix: %s\n" % pkg.options.installDir)
spec.write(REFERENCE_PACKAGE_POST % args)
spec.close()
command = "%s; rpmbuild -bb --define '_topdir %s' %s" % (rpmEnvironmentScript, tmp_path, tmp_spec)
command = "%s; rpmbuild -bb --buildroot %s/BUILDROOT --define '_topdir %s' %s" % (rpmEnvironmentScript, tmp_path, tmp_path, tmp_spec)
error, output = getstatusoutput(command)
if error:
log("Command:\n %(command)s failed with the following message: %(output)s" % locals(), DEBUG)
Expand Down