parameters: (deb_pkg)
return_statement: return (subprocess.call(
          'dpkg -l ' + deb_pkg,
          shell=True,
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE) == 0)
docstring: Uses dpkg to determine if a package has been installed
docstring_summary: Uses dpkg to determine if a package has been installed
docstring_tokens: Uses dpkg to determine if a package has been installed
function: def is_debian_package_installed(deb_pkg):
      """Uses dpkg to determine if a package has been installed"""
      return (subprocess.call(
          'dpkg -l ' + deb_pkg,
          shell=True,
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE) == 0)
function_tokens: def is_debian_package_installed ( deb_pkg ) : return ( subprocess . call ( 'dpkg -l ' + deb_pkg , shell = True , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) == 0 )