<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def all_pkgs(self):
 """ Return a list of all packages. """

        if not self.packages:
            self.packages = self.get_pkg_list()
        return self.packages