Mailinglist Archive: zypp-devel (92 mails)

< Previous Next >
Re: [zypp-devel] shutting down zypp (Fwd)
  • From: "Benji Weber" <benji.weber@xxxxxxxxx>
  • Date: Wed, 29 Aug 2007 11:19:55 +0100
  • Message-id: <d6b310ce0708290319v3ca6c8dbg349428ccb785ec5c@xxxxxxxxxxxxxx>
The problem was reported in https://bugzilla.novell.com/show_bug.cgi?id=305354

The metapackage handler runs as the limited user, and executes the
package installation itself as root.

The first part of the wizard (running as the user) amongst other
things uses Product.ycp to find which product is installed, and so
which part of the YMP to use. This seems to obtain a zypp lock.
(constructor calls  PackageLock::Check()).

When running the entire process as root (as the reporter was) the
installation itself fails if run in a separate YaST process -
presumably they are competing for a package lock. There seems to be no
way for the original wizard to release the lock after querying the
product. I have worked around this by running the installation in the
same process when run as root (which is sensible anyway).

When running the first part of the process as a limited user (normal
operation) the installation succeeds, even though the Product.ycp
still thinks it has obtained a lock.

It seems there are two problems:

1) No way to release the lock after obtaining it.
2) Lock"by the user is not locking for root, and if this were fixed so
the lock is indeed global then it would break the metapackage handler
unless 1) were also fixed.

_
Benjamin Weber
-- 
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
References