Pkg::PkgLocation Package_PkgProperties.htmlPrev  Access to packagemanager  Package_PkgPath.htmlNext Name
Pkg::PkgLocation — Get file location of a package in the source
Synopsis
            string
            
PkgLocation          (
            string
             
package          
); Parameters
            
string            
package          
Return
            
string          
Package Location
Description
        
 try { zypp::Package::constPtr pkg = find_package( p->value(), item, zypp_ptr()->pool() );
      
        
 YCPMap data;
      
        
 if (item) { return (full_path) ? YCPString( pkg->location().asString() ) : YCPString( pkg->location().basename() ); } } catch (...) { }
      
        
 return YCPVoid(); }
      
Usage
  Pkg::PkgLocation (string package) -> string
 
 
Package_PkgProperties.htmlPrev  Package.htmlUp  Package_PkgPath.htmlNext Pkg::PkgProperties index.htmlHome  Pkg::PkgPath 