예제 #1
0
    def handle(self, *args, **options):
        """
        Handle the command
        """
        if len(args) == 1:
            print lookup_latest_version(args[0])

        if len(args) == 2:
            print lookup_latest_version(args[0], args[1])
예제 #2
0
    def update_pack(self, pack):
        stable = lookup_latest_version(pack.name, "stable")
        testing = lookup_latest_version(pack.name, "testing")

        if testing:
            logger.debug("[{}] {} testing {}".format('debian_update',
                                                     pack.name,
                                                     testing))
            self.update(pack, 'Wheezy', testing)

        if stable:
            logger.debug("[{}] {} stable {}".format('debian_update',
                                                    pack.name,
                                                    stable))
            self.update(pack, 'Squeeze', stable)