Giter Club home page Giter Club logo

Comments (8)

natewalck avatar natewalck commented on August 24, 2024

From [email protected] on May 31, 2010 13:03:50

munki doesn't directly manipulate receipt info in /var/db/receipts; instead it uses pkgutil to do so. I don't
understand how you are having receipts in /var/db/receipts that aren't also in the pkgutil database in Snow
Leopard.

We have been using munki with Snow Leopard since last summer and using pkgutil instead of directly
manipulating the contents of /var/db/receipts has been a successful approach.

from munki.

natewalck avatar natewalck commented on August 24, 2024

From [email protected] on May 31, 2010 14:17:26

The entries are in the pkgutil database but still does not get removed unless i use
my patch. Here is the output from one of my pkgs using the 'pkgutil --pkgs' command

pkgutil --pkg-info firefox

package-id: firefox
version: 1
volume: /
location:
install-time: 1275338706

Here is the error i get in ManagedSoftwareUpdate.log :
..
Importing /Library/Receipts/boms/com.apple.pkg.update.security.2009.004.bom...
ERROR: firefox not found in database.
ERROR: Uninstall of Firefox failed.

from munki.

natewalck avatar natewalck commented on August 24, 2024

From [email protected] on May 31, 2010 19:26:01

Ok i just finished modifying initDatabase() with the idea you gave me. Hopefully
this fixes the problem we discussed. I tested it on a 10.5 and 10.6 client and it
seemed to work. Since i was having trouble with whitespacing when creating a diff i
decided to paste the function on pastebin @ http://pastebin.com/6mm2SzQr . Let me
know what you think.

Thanks again for help, Dan

from munki.

natewalck avatar natewalck commented on August 24, 2024

From [email protected] on June 01, 2010 09:22:40

Thanks.

I'll look at your proposed fix, but I want to avoid importing the receipts twice under Leopard (once from pkgutil
and once from /Library/Receipts/boms) so I may tweak it.

Status: Started
Owner: [email protected]

from munki.

natewalck avatar natewalck commented on August 24, 2024

From [email protected] on June 01, 2010 09:51:38

I went with a simpler fix -- it's in Revision 541 http://munki.googlecode.com/svn-history/r541/trunk/code/client/munkilib/removepackages.py jdroque, can you please test?

from munki.

natewalck avatar natewalck commented on August 24, 2024

From [email protected] on June 01, 2010 10:34:18

Sure, setting up my munki test environment at work then i'm going to test.

from munki.

natewalck avatar natewalck commented on August 24, 2024

From [email protected] on June 01, 2010 13:31:35

Just tested it on my 10.6 client and it worked as expected. Need to test on a 10.5
machine but i'm sure it will work just fine. Thanks for the fix.

from munki.

natewalck avatar natewalck commented on August 24, 2024

From [email protected] on June 01, 2010 13:54:31

Setting the issue to fixed based on jdroque's testing.

Status: Fixed

from munki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.