Index: sitescripts/extensions/bin/createNightlies.py |
=================================================================== |
--- a/sitescripts/extensions/bin/createNightlies.py |
+++ b/sitescripts/extensions/bin/createNightlies.py |
@@ -87,16 +87,27 @@ class NightlyBuild(object): |
Create a repository copy in a temporary directory |
''' |
# We cannot use hg archive here due to |
# http://bz.selenic.com/show_bug.cgi?id=3747, have to clone properly :-( |
self.tempdir = tempfile.mkdtemp(prefix=self.config.repositoryName) |
command = ['hg', 'clone', '-q', self.config.repository, '-u', 'default', self.tempdir] |
subprocess.check_call(command) |
+ # Make sure to process the dependencies file if it is present |
+ import logging |
+ logging.disable(logging.WARNING) |
+ try: |
+ from buildtools.ensure_dependencies import resolve_deps |
+ resolve_deps(self.tempdir, self_update=False, |
+ overrideroots={"hg": os.path.dirname(self.config.repository)}, |
+ skipdependencies=set(["buildtools"])) |
Sebastian Noack
2014/09/18 16:27:46
We don't support Python 2.6 anymore, right? Then y
Wladimir Palant
2014/09/18 18:18:18
Done.
|
+ finally: |
+ logging.disable(logging.NOTSET) |
+ |
def writeChangelog(self, changes): |
""" |
write the changelog file into the cloned repository |
""" |
baseDir = os.path.join(self.config.nightliesDirectory, self.basename) |
if not os.path.exists(baseDir): |
os.makedirs(baseDir) |
changelogFile = "%s-%s.changelog.xhtml" % (self.basename, self.version) |