Ticket #631: apt-any-install.patch

File apt-any-install.patch, 673 bytes (added by [email protected]…, 14 years ago)

Allow version='any' to install a new package with the APT driver

  • src/lib/Client/Tools/APT.py

     
    143143            if not pkg.get('name') in self.pkg_cache: 
    144144                self.logger.error("APT has no information about package %s" % (pkg.get('name'))) 
    145145                continue 
    146             if pkg.get('version') == 'auto': 
     146            if pkg.get('version') in ('auto','any'): 
    147147                ipkgs.append("%s=%s" % (pkg.get('name'), 
    148148                                        self.pkg_cache[pkg.get('name')].candidateVersion)) 
    149149                continue