Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
bug 553675: tweak to plugin backup script; checking in plugin definit…
Browse files Browse the repository at this point in the history
…ions downloaded from staging
  • Loading branch information
lmorchard committed Apr 20, 2010
1 parent 4593c6c commit d766cd4
Show file tree
Hide file tree
Showing 25 changed files with 1,269 additions and 499 deletions.
10 changes: 6 additions & 4 deletions bin/update-plugins-info.py
Expand Up @@ -10,12 +10,15 @@ def main():
(options, args) = parse_opts()

if options.username and options.password:
setup_basic_auth(options)
setup_basic_auth(options, options.index_url)

print "Fetching index..."
index_json = json.loads(urllib2.urlopen(options.index_url).read())
print "\tfound %s plugins." % (len(index_json))
for details in index_json:

print "Fetching %s (%s)..." % (details['name'], details['pfs_id'])
setup_basic_auth(options, details['href'])
plugin = json.loads(urllib2.urlopen(details['href']).read())

out_fn = os.path.join(options.output_dir,
Expand Down Expand Up @@ -44,11 +47,10 @@ def parse_opts():
help="HTTP basic auth password")
return op.parse_args()

def setup_basic_auth(options):
def setup_basic_auth(options, url):
"""Set up HTTP Basic auth from command line options"""
pass_mgr = urllib2.HTTPPasswordMgrWithDefaultRealm()
pass_mgr.add_password(None, options.index_url, options.username, \
options.password)
pass_mgr.add_password(None, url, options.username, options.password)
auth_handler = urllib2.HTTPBasicAuthHandler(pass_mgr)
opener = urllib2.build_opener(auth_handler)
urllib2.install_opener(opener)
Expand Down
241 changes: 185 additions & 56 deletions plugins-info/adobe-flash-player.json
@@ -1,139 +1,268 @@
{
"meta": {
"pfs_id": "adobe-flash-player",
"vendor": "Adobe",
"name": "Adobe Flash Player",
"platform": {
"app_id": "*"
},
"pfs_id": "adobe-flash-player",
"created": "2010-02-18 20:45:02",
"url": "http://www.adobe.com/go/getflashplayer",
"modified": "2010-03-21 17:30:01",
"license_url": "http://www.adobe.com/go/eula_flashplayer",
"version": "10.0.32.0"
"name": "Adobe Flash Player"
},
"aliases": {
"literal": [
"Shockwave Flash",
"Adobe Flash Player"
],
"regex": [ ".*Flash.*" ]
},
"mimes": [
"application/x-shockwave-flash",
"application/futuresplash"
],
"releases": [
{
"version": "10.0.22.87",
"vulnerability_url": "http://www.adobe.com/support/security/bulletins/apsb09-10.html"
},
{
"version": "9.0.159.0",
"vulnerability_url": "http://www.adobe.com/support/security/bulletins/apsb09-10.html"
},
"status": "latest",
"os_name": "mac",
"platform": {
"app_release": "3.5",
"locale": "ja-JP",
"app_version": "*",
"app_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
},
"detection_type": "original",
"version": "11.0.0.0",
"license_url": "http://www.adobe.com/go/eula_flashplayer_jp",
"guid": "{89977581-9028-4be0-b151-7c4f9bcd3211}",
"xpi_location": "http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-mac.xpi",
"detected_version": "11.0.0.0"
},
{
"version": "9.0.115.0",
"vulnerability_url": "http://documents.iss.net/whitepapers/IBM_X-Force_WP_final.pdf"
},
"status": "latest",
"os_name": "*",
"platform": {
"app_release": "*",
"locale": "*",
"app_version": "*",
"app_id": "*"
},
"vulnerability_url": "http://documents.iss.net/whitepapers/IBM_X-Force_WP_final.pdf",
"detection_type": "original",
"version": "9.0.115.0",
"detected_version": "9.0.115.0"
},
{
"status": "latest",
"os_name": "windows nt 6.0",
"platform": {
"app_release": "*",
"locale": "*",
"app_version": "*",
"app_id": "*"
},
"detection_type": "original",
"version": "10.0.32.0",
"guid": "{4cfaef8a-a6c9-41a0-8e6f-967eb8f49143}",
"os_name": "windows nt 6.0"
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "win",
"platform": {
"app_release": "*",
"locale": "*",
"app_version": "*",
"app_id": "*"
},
"detection_type": "original",
"version": "10.0.32.0",
"guid": "{4cfaef8a-a6c9-41a0-8e6f-967eb8f49143}",
"xpi_location": "http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-win.xpi",
"os_name": "win"
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "linux",
"platform": {
"app_release": "*",
"locale": "*",
"app_version": "*",
"app_id": "*"
},
"detection_type": "original",
"version": "10.0.32.0",
"guid": "{7a646d7b-0202-4491-9151-cf66fa0722b2}",
"xpi_location": "http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-linux.xpi",
"os_name": "linux"
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "mac",
"platform": {
"app_release": "*",
"locale": "*",
"app_version": "*",
"app_id": "*"
},
"detection_type": "original",
"version": "10.0.32.0",
"guid": "{89977581-9028-4be0-b151-7c4f9bcd3211}",
"xpi_location": "http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-mac.xpi",
"os_name": "mac"
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "sunos sun4u",
"platform": {
"app_release": "*",
"locale": "*",
"app_version": "*",
"app_id": "*"
},
"detection_type": "original",
"version": "10.0.32.0",
"guid": "{0ae66efd-e183-431a-ab51-3af2c278a3dd}",
"xpi_location": "http://download.macromedia.com/pub/flashplayer/xpi/current/flashplayer-solaris-sparc.xpi",
"os_name": "sunos sun4u"
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "sunos",
"platform": {
"app_release": "*",
"locale": "*",
"app_version": "*",
"app_id": "*"
},
"detection_type": "original",
"version": "10.0.32.0",
"guid": "{0ae66efd-e183-431a-ab51-3af2c278a3dd}",
"xpi_location": "http://download.macromedia.com/pub/flashplayer/xpi/current/flashplayer-solaris-x86.xpi",
"os_name": "sunos"
},
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "windows nt 6.0",
"platform": {
"app_release": "*",
"locale": "ja-JP",
"app_version": "*",
"app_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
},
"detection_type": "original",
"version": "10.0.32.0",
"license_url": "http://www.adobe.com/go/eula_flashplayer_jp",
"guid": "{4cfaef8a-a6c9-41a0-8e6f-967eb8f49143}",
"os_name": "windows nt 6.0"
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "win",
"platform": {
"app_release": "*",
"locale": "ja-JP",
"app_version": "*",
"app_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
},
"detection_type": "original",
"version": "10.0.32.0",
"license_url": "http://www.adobe.com/go/eula_flashplayer_jp",
"guid": "{4cfaef8a-a6c9-41a0-8e6f-967eb8f49143}",
"xpi_location": "http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-win.xpi",
"os_name": "win"
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "linux",
"platform": {
"app_release": "*",
"locale": "ja-JP",
"app_version": "*",
"app_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
},
"detection_type": "original",
"version": "10.0.32.0",
"license_url": "http://www.adobe.com/go/eula_flashplayer_jp",
"guid": "{7a646d7b-0202-4491-9151-cf66fa0722b2}",
"xpi_location": "http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-linux.xpi",
"os_name": "linux"
},
{
"platform": {
"locale": "ja-JP",
"app_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}",
"app_release": "3.5"
},
"license_url": "http://www.adobe.com/go/eula_flashplayer_jp",
"guid": "{89977581-9028-4be0-b151-7c4f9bcd3211}",
"xpi_location": "http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-mac.xpi",
"version": "11.0.0.0",
"os_name": "mac"
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "mac",
"platform": {
"app_release": "3.5",
"locale": "ja-JP",
"app_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}",
"app_release": "3.5"
"app_version": "*",
"app_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
},
"detection_type": "original",
"version": "10.0.32.0",
"license_url": "http://www.adobe.com/go/eula_flashplayer_jp",
"guid": "{89977581-9028-4be0-b151-7c4f9bcd3211}",
"xpi_location": "http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-mac.xpi",
"os_name": "mac"
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "sunos sun4u",
"platform": {
"app_release": "*",
"locale": "ja-JP",
"app_version": "*",
"app_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
},
"detection_type": "original",
"version": "10.0.32.0",
"license_url": "http://www.adobe.com/go/eula_flashplayer_jp",
"guid": "{0ae66efd-e183-431a-ab51-3af2c278a3dd}",
"xpi_location": "http://download.macromedia.com/pub/flashplayer/xpi/current/flashplayer-solaris-sparc.xpi",
"os_name": "sunos sun4u"
"detected_version": "10.0.32.0"
},
{
"status": "latest",
"os_name": "sunos",
"platform": {
"app_release": "*",
"locale": "ja-JP",
"app_version": "*",
"app_id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
},
"detection_type": "original",
"version": "10.0.32.0",
"license_url": "http://www.adobe.com/go/eula_flashplayer_jp",
"guid": "{0ae66efd-e183-431a-ab51-3af2c278a3dd}",
"xpi_location": "http://download.macromedia.com/pub/flashplayer/xpi/current/flashplayer-solaris-x86.xpi",
"os_name": "sunos"
"detected_version": "10.0.32.0"
},
{
"status": "vulnerable",
"os_name": "*",
"platform": {
"app_release": "*",
"locale": "*",
"app_version": "*",
"app_id": "*"
},
"vulnerability_url": "http://www.adobe.com/support/security/bulletins/apsb09-10.html",
"detection_type": "original",
"version": "10.0.22.87",
"detected_version": "10.0.22.87"
},
{
"status": "latest",
"os_name": "*",
"platform": {
"app_release": "*",
"locale": "*",
"app_version": "*",
"app_id": "*"
},
"vulnerability_url": "http://www.adobe.com/support/security/bulletins/apsb09-10.html",
"detection_type": "original",
"version": "9.0.159.0",
"detected_version": "9.0.159.0"
}
]
}
],
"mimes": [
"application/x-shockwave-flash",
"application/futuresplash"
],
"aliases": {
"regex": [
".*Flash.*"
],
"literal": [
"Shockwave Flash",
"Adobe Flash Player"
]
}
}

0 comments on commit d766cd4

Please sign in to comment.