src/blossoms/apt_blossoms.cpp
/**
 * @brief isInstalled check for a specific package, if this is installed
 *
 * @param package package-name to check
 *
 * @return true, if package is already installed, else false
 */
@brief isInstalled check for a specific package, if this is installed
@param package package-name to check

@return true, if package is already installed, else false
@brief isInstalled check for a specific package if this is installed @param package package - name to check @return true if package is already installed else false
bool
isInstalled(const std::string &package)
{
    if(package.length() == 0) {
        return false;
    }
    const std::vector<std::string> currentInstalled = getInstalledPackages();
    for(const std::string& installedPackage : currentInstalled)
    {
        if(installedPackage == package) {
            return true;
        }
    }
    return false;
}
bool isInstalled ( const std :: string & package ) { if ( package . length ( ) == 0 ) { return false ; } const std :: vector < std :: string > currentInstalled = getInstalledPackages ( ) ; for ( const std :: string & installedPackage : currentInstalled ) { if ( installedPackage == package ) { return true ; } } return false ; }
@brief isInstalled check for a specific package, if this is installed
 @param package package-name to check
@brief isInstalled check for a specific package if this is installed @param package package - name to check