Comments (13)
Looks like Microsoft changed the location of the Info plist. The new location is:
<string>%RECIPE_CACHE_DIR%/unpack/Library/Internet Plug-Ins/Silverlight.plugin/Contents/Info.plist</string>
You can create an override of the Silverlight.pkg.recipe to fix it until someone submits a pull request. I will submit one later today unless someone beats me to it :)
from recipes.
I created a pull request for this issue #127
from recipes.
Not seeing any issue here:
% autopkg run -vv Silverlight.pkg
Processing Silverlight.pkg...
URLDownloader
{'Input': {'filename': u'Silverlight.dmg',
'request_headers': {
"user-agent" = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.28.10 (KHTML, like Gecko) Version/6.0.3 Safari/536.28.10";
},
'url': u'http://www.microsoft.com/getsilverlight/handlers/getsilverlight.ashx'}}
URLDownloader: Storing new Last-Modified header: Thu, 19 Nov 2015 08:01:01 GMT
URLDownloader: Storing new ETag header: "801c3c6ea022d11:0"
URLDownloader: Downloaded /Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/downloads/Silverlight.dmg
{'Output': {'download_changed': True,
'etag': '"801c3c6ea022d11:0"',
'last_modified': 'Thu, 19 Nov 2015 08:01:01 GMT',
'pathname': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/downloads/Silverlight.dmg',
'url_downloader_summary_result': {'data': {'download_path': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/downloads/Silverlight.dmg'},
'summary_text': 'The following new items were downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
FlatPkgUnpacker
{'Input': {'destination_path': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/expand',
'flat_pkg_path': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/downloads/Silverlight.dmg/Silverlight.pkg'}}
FlatPkgUnpacker: Mounted disk image /Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/downloads/Silverlight.dmg
FlatPkgUnpacker: Unpacked /private/tmp/dmg.9yHtsU/Silverlight.pkg to /Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/expand
{'Output': {}}
PkgPayloadUnpacker
{'Input': {'destination_path': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/unpack',
'pkg_payload_path': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/expand/silverlight_plugin.pkg/Payload'}}
PkgPayloadUnpacker: Unpacked /Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/expand/silverlight_plugin.pkg/Payload to /Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/unpack
{'Output': {}}
Versioner
{'Input': {'input_plist_path': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/unpack/Internet Plug-Ins/Silverlight.plugin/Contents/Info.plist',
'plist_version_key': u'CFBundleVersion'}}
Versioner: Found version 5.1.40813.0 in file /Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/unpack/Internet Plug-Ins/Silverlight.plugin/Contents/Info.plist
{'Output': {'version': u'5.1.40813.0'}}
PkgCopier
{'Input': {'pkg_path': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/Silverlight-5.1.40813.0.pkg',
'source_pkg': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/downloads/Silverlight.dmg/Silverlight.pkg'}}
PkgCopier: Mounted disk image /Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/downloads/Silverlight.dmg
PkgCopier: Copied /private/tmp/dmg.4fBHBQ/Silverlight.pkg to /Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/Silverlight-5.1.40813.0.pkg
{'Output': {'pkg_copier_summary_result': {'data': {'pkg_path': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/Silverlight-5.1.40813.0.pkg'},
'summary_text': 'The following packages were copied:'},
'pkg_path': u'/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/Silverlight-5.1.40813.0.pkg'}}
Receipt written to /Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/receipts/Silverlight-receipt-20151210-103418.plist
The following packages were copied:
Pkg Path
--------
/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/Silverlight-5.1.40813.0.pkg
The following new items were downloaded:
Download Path
-------------
/Users/gneagle/Library/AutoPkg/Cache/com.github.autopkg.pkg.Silverlight/downloads/Silverlight.dmg
Are you running the current version of the recipe?
from recipes.
@gregneagle
Yes I am running the current recipe.
Interestingly our Silverlight versions differ, I'm getting 5.1.41105.0
This also appears to be the latest version according to https://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx
My guess is that the version you are getting is the latest for your OS? Nevermind, looks like autopkg sends a 10.8.3 header by default when downloading.
from recipes.
Oh, that's interesting. Would explain lots of weirdnesses around the Silverlight recipes...
from recipes.
But it would be sending that same header for you, no?
from recipes.
Correct, and I still get the latest version.
from recipes.
I think we've seen this pseudo-random behavior for a while.
Any update to the recipe needs to handle whatever "current" version MS responds with. The current recipe is broken for you, but I suspect your change would break it for me. (and others)
If someone wants to dig in and do a proper fix...
from recipes.
I now get 5.1.41105.0, but for the past couple of months the download page has offered several different versions, and there have been open issues about this in the past.
AFAIK Silverlight registers with Microsoft Auto-Update, which means it may be able to retrieve and parse a feed to get the current version - if said version and download info is actually available in that feed (rather than simply redirecting users to the downloads page).
Since Silverlight is updated rarely and without compelling new features, seems there's less interest or need to have the recipe working more robustly. That said, there's already a fair amount of MAU-parsing code in the Office updates recipes if someone wants to try.
from recipes.
I suspect the same.
My initial idea is to use the FileFinder processor, however it only returns if a file exist, not the path. So would it be better to add a custom processor to the Silverlight recipe, or add another return value to the FileFinder recipe. I could really see another return value being useful for more than just this problem.
from recipes.
@badstreff I just tried out changing the input_plist_path in an override. Looks like my change gets ignored and the base recipe's path is used instead. What's interesting is that the error is that it says %RECIPE_CACHE_DIR% is undefined, so it uses the original which also includes %RECIPE_CACE_DIR%. So I tried hardcoding the full file path. It still reverted to the path in the base recipe. I'm not sure this is something that can be fixed with an override.
from recipes.
@rougegoat
Looks like you can only modify input variables with overrides, so I told you wrong. The easiest thing to do would be to create a new recipe with the correct URL. Or you can snag a copy of mine
from recipes.
This should now be resolved with #134.
from recipes.
Related Issues (20)
- AdobeReaderURLProvider providing invalid URL HOT 7
- AdobeReaderDC.download.recipe fails because of mismatch in authority names HOT 1
- Praat.download: CodeSignatureVerifier fails due to outdated designated requirement string HOT 3
- Acrobat Adobe Reader DC has been reverted to Acrobat Adobe Reader (DC removed) HOT 4
- Wrong pattern in line 189 munkitools.munki.recipe HOT 1
- Error with GoogleChrome.pkg recipe HOT 3
- MSAutoUpdate.download.recipe - processor MSOfficeMacURLandUpdateInfoProvider can't be found HOT 1
- XQuartz sparkle URL has changed HOT 3
- XQuartz download recipe pointing to old Sparkle feed
- com.github.autopkg.munki.MSTeams pulls an old version HOT 2
- com.github.autopkg.munki.MSTeams pulls old version HOT 3
- Feature request - munkitools6 recipe should support the MacAdmins signed releases HOT 1
- FR - MSOffice - MSOfficeMacURLandUpdateInfoProvider.py - BASE_URL change suggestion HOT 4
- Errant plist data in metadata for MSCompanyPortal download recipe causes autopg run to abort
- AdobeReader.pkg.recipe breaks package with Ventura
- Evernote.download.recipe - Processor: URLDownloader: Error: curl: (22) The requested URL returned error: 404 HOT 3
- Evernote.download.recipe -- Download URL has changed (again) HOT 1
- Dropbox download/munki recipes every so often appears to install beta version instead of production version
- Handbrake: incorrect file type is downloaded from GitHub
- package receipt not valid mechanism for Adobe Reader HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recipes.