original_docstring:  Returns dict of all packages matched. 
docstring: Returns dict of all packages matched.
docstring_tokens: Returns dict of all packages matched .
code: def _all(self):
          """ Returns dict of all packages matched. """
          if self._all_packages:
              return self._all_packages
  
          dpkg_l = self.cli.dpkg_l()
          if not dpkg_l:
              return
  
          all_exprs = self.core_pkg_exprs + self.other_pkg_exprs
          for line in dpkg_l:
              for pkg in all_exprs:
                  name, version = self._match_package(pkg, line)
                  if name is None:
                      continue
  
                  if pkg in self.core_pkg_exprs:
                      self._core_packages[name] = version
                  else:
                      self._other_packages[name] = version
  
          # ensure sorted
          self._core_packages = sorted_dict(self._core_packages)
          self._other_packages = sorted_dict(self._other_packages)
          combined = {}
          combined.update(self._core_packages)
          combined.update(self._other_packages)
          self._all_packages = sorted_dict(combined)
  
          return self._all_packages
code_tokens: def _all ( self ) : if self . _all_packages : return self . _all_packages dpkg_l = self . cli . dpkg_l ( ) if not dpkg_l : return all_exprs = self . core_pkg_exprs + self . other_pkg_exprs for line in dpkg_l : for pkg in all_exprs : name , version = self . _match_package ( pkg , line ) if name is None : continue if pkg in self . core_pkg_exprs : self . _core_packages [ name ] = version else : self . _other_packages [ name ] = version self . _core_packages = sorted_dict ( self . _core_packages ) self . _other_packages = sorted_dict ( self . _other_packages ) combined = { } combined . update ( self . _core_packages ) combined . update ( self . _other_packages ) self . _all_packages = sorted_dict ( combined ) return self . _all_packages
short_docstring: Returns dict of all packages matched.
short_docstring_tokens: Returns dict of all packages matched .
comment: """ Returns dict of all packages matched. """$SEP$# ensure sorted