Index: .sitescripts.example
diff --git a/.sitescripts.example b/.sitescripts.example
index 14efdbef39f1ebddf60f69a72bf83a2031942b62..d4e0fc7f7f17d7c68005da911803aa0042f224f1 100644
--- a/.sitescripts.example
+++ b/.sitescripts.example
@@ -61,6 +61,7 @@ dataPath=%(root)s/logs
 fileName=log.%%i.gz
 
 [extensions]
+root=/server/root/path
 abp_repository=%(hgroot)s/adblockplus
 abp_name=Adblock Plus for Mozilla Firefox
 abp_galleryID=adblock-plus
Index: sitescripts/extensions/bin/createNightlies.py
diff --git a/sitescripts/extensions/bin/createNightlies.py b/sitescripts/extensions/bin/createNightlies.py
index ed2cabfbe1977fb84e53b3be74c116d2f88d9912..6d8f4d23aae9aec8d8ded3ec02ccb42c4ebe8e2c 100644
--- a/sitescripts/extensions/bin/createNightlies.py
+++ b/sitescripts/extensions/bin/createNightlies.py
@@ -317,7 +317,12 @@ class NightlyBuild(object):
         """
           run the build command in the tempdir
         """
-        baseDir = os.path.join(self.config.nightliesDirectory, self.basename)
+        if self.config.type not in self.downloadable_repos:
+            baseDir = os.path.join(self.config.nightliesDirectory,
+                                   self.basename)
+        else:
+            baseDir = self.tempdir
+
         if not os.path.exists(baseDir):
             os.makedirs(baseDir)
         outputFile = '%s-%s%s' % (self.basename, self.version, self.config.packageSuffix)
@@ -515,6 +520,11 @@ class NightlyBuild(object):
         try:
             urllib2.urlopen(request).close()
         except urllib2.HTTPError as e:
+            shutil.copyfile(
+                self.path,
+                os.path.join(get_config().get('extensions', 'root'),
+                             'failed.' + self.config.packageSuffix),
+            )
             try:
                 logging.error(e.read())
             finally:
