[zypp-devel] Question Regarding Packages with EULAs

Hello. I'm investigating adding a zypp backend to packagekit, and during my investigation, I noticed that some packages zypp handles has EULA prompts. While discussing with Richard Hughes, we discussed how to handle this, and due to the backend design, there was 2 methods: 1. Showing the EULA before the package is queued (preferable) 2. Showing the EULA after the package is installed So basically.. the question for this list is: 1. Is the EULA for the package (such as flash-player, etc..) available before the package is installed, and available via the libzypp API? Thanks again for your time --Justin Haygood -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

Justin Haygood wrote:
Hello. I'm investigating adding a zypp backend to packagekit, and during my investigation, I noticed that some packages zypp handles has EULA prompts.
While discussing with Richard Hughes, we discussed how to handle this, and due to the backend design, there was 2 methods:
1. Showing the EULA before the package is queued (preferable) 2. Showing the EULA after the package is installed
So basically.. the question for this list is:
1. Is the EULA for the package (such as flash-player, etc..) available before the package is installed, and available via the libzypp API?
Yes, the EULA that needs confirmation is available from the moment you read the metadata (e.g. by ResStore resstore = RepoManager::createFromCache().resolvables()), through the Resolvable::licenseToConfirm() method. If there's no license to confirm, the string returned will be empty, otherwise it contains the text of the license agreement. Although its far from being a good example, you can find an inspiration in zypper's implementation here: http://svn.opensuse.org/svn/zypp/trunk/zypper/src/zypper-misc.cc (look for confirm_licenses() function) You can find an example in YaST code, too, maybe someone else can point you to it. Regards, Jano Jan Kupec YaST Team -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

Dňa Tuesday 11 September 2007 20:30:53 Justin Haygood ste napísal:
Hello. I'm investigating adding a zypp backend to packagekit, and during my investigation,
Cool stuff!
I noticed that some packages zypp handles has EULA prompts.
While discussing with Richard Hughes, we discussed how to handle this, and due to the backend design, there was 2 methods:
1. Showing the EULA before the package is queued (preferable) 2. Showing the EULA after the package is installed
So basically.. the question for this list is:
1. Is the EULA for the package (such as flash-player, etc..) available before the package is installed, and available via the libzypp API?
Just a note: the rule is to show the EULA before the package gets installed, so a user can reject the license and thus she will not get the package. Stano -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

On Tuesday 11 September 2007 20:30:53 Justin Haygood wrote:
Hello. I'm investigating adding a zypp backend to packagekit, and during my investigation, I noticed that some packages zypp handles has EULA prompts.
While discussing with Richard Hughes, we discussed how to handle this, and due to the backend design, there was 2 methods:
1. Showing the EULA before the package is queued (preferable) 2. Showing the EULA after the package is installed
So basically.. the question for this list is:
1. Is the EULA for the package (such as flash-player, etc..) available before the package is installed, and available via the libzypp API?
Yes, IIRC pkg->licenseToConfirm()
Thanks again for your time
--Justin Haygood
Hi!, this is cool stuff. I am CCing Thomas, Jörg and Michael because they were looking at this too. Justin, are you doing your research on some public repository? They will sure be able to assist you. Cheers -- Duncan Mac-Vicar Prett Novell :: SUSE R&D, Maxfeldstr. 5, 90409 Nürnberg GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

-----Original Message----- From: Duncan Mac-Vicar Prett [mailto:dmacvicar@suse.de] Sent: Wednesday, September 12, 2007 5:10 AM To: zypp-devel@opensuse.org Cc: Justin Haygood; tgoettlicher@suse.de; Joerg Kress; ma@suse.de Subject: Re: [zypp-devel] Question Regarding Packages with EULAs On Tuesday 11 September 2007 20:30:53 Justin Haygood wrote:
Hello. I'm investigating adding a zypp backend to packagekit, and during my investigation, I noticed that some packages zypp handles has EULA prompts.
While discussing with Richard Hughes, we discussed how to handle this, and due to the backend design, there was 2 methods:
1. Showing the EULA before the package is queued (preferable) 2. Showing the EULA after the package is installed
So basically.. the question for this list is:
1. Is the EULA for the package (such as flash-player, etc..) available before the package is installed, and available via the libzypp API?
Yes, IIRC pkg->licenseToConfirm()
Thanks again for your time
--Justin Haygood
Hi!, this is cool stuff. I am CCing Thomas, Jörg and Michael because they were looking at this too. Justin, are you doing your research on some public repository? They will sure be able to assist you. Cheers -- Duncan Mac-Vicar Prett ========================== Not yet... We'll need some updated packages in openSUSE first... PackageKit requires dbus 1.1 and PolicyKit 0.5. We currently have dbus 1.0 and PolicyKit 0.4 in 10.3 B3. My plan was for tonight to create updated RPMs for myself using the new code, and then get started coding tonight. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (4)
-
Duncan Mac-Vicar Prett
-
Jan Kupec
-
Justin Haygood
-
Stanislav Visnovsky