Skip to content

Commit

Permalink
Builder|Fixed: Assumption that a previous APT refresh has been done
Browse files Browse the repository at this point in the history
A previously generated gpg-signed Release file may be missing.
  • Loading branch information
skyjake committed Feb 27, 2012
1 parent 24e75b2 commit dc3a3fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion distrib/autobuild.py
Expand Up @@ -142,7 +142,11 @@ def rebuild_apt_repository():
os.system("apt-ftparchive generate ~/Dropbox/APT/ftparchive.conf")
os.system("apt-ftparchive -c %s release %s/%s > %s/%s/Release" % (builder.config.APT_CONF_FILE, aptDir, builder.config.APT_DIST, aptDir, builder.config.APT_DIST))
os.chdir("%s/%s" % (aptDir, builder.config.APT_DIST))
os.remove("Release.gpg")
try:
os.remove("Release.gpg")
except OSError:
# Never mind.
pass
os.system("gpg --output Release.gpg -ba Release")
os.system("~/Dropbox/Scripts/mirror-tree.py %s %s" % (aptDir, os.path.join(builder.config.EVENT_DIR, 'apt')))

Expand Down

0 comments on commit dc3a3fe

Please sign in to comment.