Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_run([sys.executable, mozupdate, "-q", "partial"] +
mozupdate_clobber_arg +
["--removed-files-candidates", removed_file_list,
"--force", pkg_path, ref_mar_dir, image_dir])
print "created '%s' (for 'nightly' channel)" % pkg_path
except OSError, ex:
log.warn("'nightly' mar failed: %r", ex)
print "failed to create mar for 'nightly' channel - ignoring"
built_at_least_one_nightly_update = True
# ...and a changelog for this.
changelog_path = join(packagesDir,
"%s-partial-%s.html" % (cfg.komodoPackageBase, ref_mar_ver))
start_rev = guru.changenum_from_mar_path(ref_mar_path) + 1
end_rev = guru.changenum_from_mar_path(pkg_path)
html = changelog.changelog_html(start_rev, end_rev)
if not dryRun:
open(changelog_path, 'w').write(html.encode('utf-8', 'ignore'))
print "created '%s'" % changelog_path
if not built_at_least_one_nightly_update:
log.warn("no previous nightly complete .mar exists: skipping "
"build of partial update package for *nightly* channel")
# - For betas *and* finals, want a partial update relative to the last
# released package, beta or not (for beta channel). Note: alphas
# count as a "beta" here, i.e. "beta" == "pre-release".
ref_mar_path = last_beta_release_complete_mar \
= guru.last_release_complete_mar
if ref_mar_path is None:
log.warn("no preceding release complete .mar package: skipping "
"build of partial update package for *beta* channel")
elif not buildutils.remote_exists(ref_mar_path):