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