remove api changes in python file

pull/14280/head
Max U 2019-07-19 15:07:06 -07:00
parent 2202d727da
commit 0ba8974294
1 changed files with 2 additions and 2 deletions

View File

@ -698,7 +698,7 @@ def package(build_output, pkg_name, version, nightly=False, iteration=1, static=
# logging.debug("Changing package output version from {} to {} for RPM.".format(version, package_version))
# Strip nightly version from package name
new_outfile = outfile.replace("{}-{}".format(package_version, package_iteration), "nightly")
fs.RenameFile(outfile, new_outfile)
os.rename(outfile, new_outfile)
outfile = new_outfile
else:
if package_type == 'rpm':
@ -706,7 +706,7 @@ def package(build_output, pkg_name, version, nightly=False, iteration=1, static=
package_version = package_version.replace("-", "_")
logging.debug("Changing package output version from {} to {} for RPM.".format(version, package_version))
new_outfile = outfile.replace("{}-{}".format(package_version, package_iteration), package_version)
fs.RenameFile(outfile, new_outfile)
os.rename(outfile, new_outfile)
outfile = new_outfile
outfiles.append(os.path.join(os.getcwd(), outfile))
logging.debug("Produced package files: {}".format(outfiles))