Provide information whether acceptance of a product license is needed
[platform/upstream/libzypp.git] / zypp / ResObject.cc
index 37b6fa5..958c671 100644 (file)
@@ -75,6 +75,13 @@ namespace zypp
     return ret;
   }
 
+  bool ResObject::needToAcceptLicense() const
+  {
+    if ( isKind<Product>() )
+      return repoInfo().needToAcceptLicense( );
+    return true;
+  }
+
   std::string ResObject::distribution() const
   { return lookupStrAttribute( sat::SolvAttr::distribution ); }