Comments (10)
Thinking about this one level deeper I imagine the representation of CFBundleShortVersionString needs to be in a form that the Munki process will correctly match it. So maybe it needs to stay what it is? I hope not, though. However, it is annoying that the MunkiImporter uses the two spaces in both the plist and pkg names when importing.
from recipes.
I think it needs to stay as-is because the CFBundleShortVersionString in the Infor.plist on disk for Flip4Mac will be in this format.
Generally speaking, I don't think Munki (or any recipes) should modify the value in the CFBundleShortVersionString, except possibly for display-only purposes.
from recipes.
Okay, I'm convinced on the CFBundleShortVersionString staying issue.
Can we add a filter for pkg and plist names to the MunkiImport process? It just feels wrong with the spaces in there.
from recipes.
We actually used to strip the version string, exactly when this started happening with Flip4Mac, and went back on it because the version metadata would no longer reflect what Munki is actually using to compare versions, as you suspected.
I don't personally find the spaces in the filenames to be annoying (and on some level they serve as a reminder/warning that the package's metadata is sloppy), but I don't see any reason to not strip()
surrounding whitespace before staging the files in the repo.
from recipes.
Ok, I'll try to tinker and submit a pull. Hopefully I can find time for that soon.
from recipes.
It seems as simple as this change, yes?
diff --git a/Code/autopkglib/MunkiImporter.py b/Code/autopkglib/MunkiImporter.py
index 6703e74..ee4c009 100644
--- a/Code/autopkglib/MunkiImporter.py
+++ b/Code/autopkglib/MunkiImporter.py
@@ -339,7 +339,7 @@ class MunkiImporter(Processor):
raise ProcessorError("Could not create %s: %s"
% (destination_path, err.strerror))
- pkginfo_name = "%s-%s.plist" % (pkginfo["name"], pkginfo["version"])
+ pkginfo_name = "%s-%s.plist" % (pkginfo["name"], pkginfo["version"].strip())
pkginfo_path = os.path.join(destination_path, pkginfo_name)
index = 0
while os.path.exists(pkginfo_path):
from recipes.
Yup!
from recipes.
Want a PR for that little change? ;)
from recipes.
No PR is too small.
🍰
from recipes.
Submitted as autopkg/autopkg#39.
from recipes.
Related Issues (20)
- 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
- AdobeReader recipes fail to find new versions HOT 2
- MSOfficeMacProduct.download misleading description HOT 1
- download.MSCompanyPortal broken because of upstream issue
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.