Class: Y2Packager::LicensesHandlers::Libzypp

Inherits:
Base
  • Object
show all
Defined in:
library/packages/src/lib/y2packager/licenses_handlers/libzypp.rb

Overview

This class is responsible for interacting with libzypp in order to get/set the license acceptance status for a given product

Instance Attribute Summary

Attributes inherited from Base

#product_name

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Y2Packager::LicensesHandlers::Base

Instance Method Details

#confirmation=(confirmed) ⇒ Object

Set the license confirmation for the product

Parameters:

  • confirmed (Boolean)

    true if it should be accepted; false otherwise



25
26
27
28
29
30
31
# File 'library/packages/src/lib/y2packager/licenses_handlers/libzypp.rb', line 25

def confirmation=(confirmed)
  if confirmed
    Yast::Pkg.PrdMarkLicenseConfirmed(product_name)
  else
    Yast::Pkg.PrdMarkLicenseNotConfirmed(product_name)
  end
end