Comments (11)
From [email protected] on September 02, 2010 09:38:30
I'll probably need some help on this; English is the only language value that shows up for me in the dist files, so it's hard for me to test other languages. I'm actually surprised that language localization issues haven't come up before now...
Status: Accepted
from munki.
From vongablersahm on September 02, 2010 11:15:23
I am not sure how the language for the updates catalog is selected. I would guess it is taken from the language the loginwindow has been set to. Individual users could have different language settings for their session, but munki's software update runs as root and has no easy way to know the current user's language - or even adapt to it.
You can probably reproduce the problem by using /usr/sbin/languagesetup on a 10.5 system to temporarily switch languages.
Attached is an example dist file with german localization:
/Library/Updates/Java für Mac OS X 10.5 Update 5/Java für Mac OS X 10.5 Update 5.dist
from munki.
From [email protected] on September 02, 2010 12:08:01
I can't seem to force any language other than English. But maybe we don't have to care, and can just grab the first localized string regardless of language. Can you try the attached file as a replacement for appleupdates.py?
Status: Started
Owner: [email protected]
from munki.
From vongablersahm on September 02, 2010 13:20:51
That works great, the update titles are being parsed correctly.
One little thing: The description for "Java für Mac OS X 10.5 Update 7" does show some spurious lines before the real description. All other updates do show up correctly.
I have attached the two sample files.
from munki.
From [email protected] on September 02, 2010 14:48:09
appleupdates.py attempts to parse the dist file to get the HTML description, but there are various formats and sometimes it grabs the wrong thing. In the case you mention, the localization contains two things labeled SU_DESCRIPTION. parseDist just grabs everything after the first SU_DESCRIPTION tag. If there's more than one, I'm not sure how parseDist can decide which one is the right one...
from munki.
From [email protected] on September 02, 2010 16:23:05
Try this new appleupdates.py to see if it does a better job of parsing the dist file description.
from munki.
From vongablersahm on September 02, 2010 22:49:54
The new appleupdates.py does not change the display of the descriptions, as far as i see. The AppleUpdates.plist remainy identical.
But it looks like the duplicate SU_DESCRIPTION tags are a localization error on Apple's part. You could only try to behave like the SoftwareUpdate.app and always display the last SU_DESCRIPTION there is. Or prefer a SU_DESCRIPTION beginning with "", but that seems like overkill.
from munki.
From [email protected] on September 03, 2010 06:37:19
"You could only try to behave like the SoftwareUpdate.app and always display the last SU_DESCRIPTION there is."
The correct one is the last on in this particular case, but there's no guarantee it will always be the correct one.
"Or prefer a SU_DESCRIPTION beginning with "", but that seems like overkill."
They don't always start with an tag...
from munki.
From [email protected] on September 03, 2010 14:48:22
Try this attached version of appleupdates.py!
from munki.
From vongablersahm on September 03, 2010 15:41:03
works perfectly!
from munki.
From [email protected] on September 03, 2010 15:43:04
Great. Marking as fixed.
Status: Fixed
from munki.
Related Issues (20)
- DeprecationWarning in repoclean with Munki 6.3.1 HOT 5
- distutils.version deprecated in Python 3.10 HOT 1
- PyObjC - possibly needs updating to 9.1.1? HOT 3
- munkiimport and makepkginfo crash with distribution-style packages containing a payload-free package HOT 1
- New Optional Key: Pre-warm .apps on macOS Sonoma HOT 6
- Build numbering changed, or digit missing in latest release? HOT 7
- app_usage_monitor fails trying to call superclass's init HOT 4
- [Feature Request] JSON Logging Format HOT 1
- Logic error when processing requires items that fail to download HOT 2
- Minor MSC UI issue - Removing app progress HOT 4
- Option to check for items to install only, 'dry run' HOT 1
- MSC 6.2.1.4599 crashes on macOS 10.13 HOT 18
- munkiimport and munkilib/pkgutils.py crash with packages containing .dist file HOT 13
- Preinstall_alerts not being shown for updated software HOT 3
- Placment of the back button in Managed Software Centre HOT 9
- [Feature Request] - Add a Pkginfo Key to skip update check HOT 2
- security issue: Writing sensitive information into log file HOT 3
- Option to ignore unmanaged preferences HOT 4
- Question: Does munki have a client CLI tool for software installation and update HOT 1
- installable_condition crashes client HOT 10
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 munki.