Skip to content
Browse files

Add a new field to the StackBuilder catalog to specify a manifest URL.

The manifest URL (which is optional) will point to an XML file that
describes the command line, option file and environment options that
can be passed to an installer, to allow automated or non-interactive
deployment tools to figure out what info is required to run an
installer and how to pass it to it.

Requires SQL:

ALTER TABLE downloads_stackbuilderapp ADD COLUMN manifesturl character varying(500);
UPDATE downloads_stackbuilderapp SET manifesturl = '';
ALTER TABLE downloads_stackbuilderapp ALTER COLUMN manifesturl SET NOT NULL;
  • Loading branch information...
1 parent c4a72a3 commit 23a7c8817275ec540ccfff9ddc7d51becfd06a33 @dpage dpage committed Aug 20, 2013
Showing with 2 additions and 0 deletions.
  1. +1 −0 pgweb/downloads/models.py
  2. +1 −0 pgweb/downloads/views.py
View
1 pgweb/downloads/models.py
@@ -129,6 +129,7 @@ class StackBuilderApp(models.Model):
verbose_name='Dependencies',
help_text='Comma separated list of text dependencies, no spaces!')
versionkey = models.CharField(max_length=500, null=False, blank=False)
+ manifesturl = models.URLField(max_length=500, null=False, blank=True)
def __unicode__(self):
return "%s %s %s" % (self.textid, self.version, self.platform)
View
1 pgweb/downloads/views.py
@@ -274,6 +274,7 @@ def applications_v2_xml(request):
x.add_xml_element('mirrorpath', a.mirrorpath)
x.add_xml_element('alturl', a.alturl)
x.add_xml_element('versionkey', a.versionkey)
+ x.add_xml_element('manifesturl', a.manifesturl)
for dep in a.txtdependencies.split(','):
x.add_xml_element('dependency', dep)
x.endElement('application')

0 comments on commit 23a7c88

Please sign in to comment.
Something went wrong with that request. Please try again.