Пример #1
0
    def run(self, argv):
        packages = PackageHelper.get_installed_packages()
        keys = packages.keys()
        if len(keys) == 0:
            print "[PACKAGE] not found installed packages"
            return

        print "[PACKAGE] installed packages:"
        keys.sort()
        for k in keys:
            package_data = PackageHelper.get_installed_package_data(packages[k]["name"])
            print "[PACKAGE] > %s %s (%s)" % (package_data["name"], package_data["version"], package_data["author"])

        print ""
Пример #2
0
    def run(self, argv):
        packages = PackageHelper.get_installed_packages()
        keys = packages.keys()
        if len(keys) == 0:
            print cocos.MultiLanguage.get_string('PACKAGE_LIST_NOT_FOUND')
            return

        print cocos.MultiLanguage.get_string('PACKAGE_LIST_TIP')
        keys.sort()
        for k in keys:
            package_data = PackageHelper.get_installed_package_data(packages[k]["name"])
            print cocos.MultiLanguage.get_string('PACKAGE_ITEM_FMT')\
                  % (package_data["name"], package_data["version"], package_data["author"])

        print ""
Пример #3
0
    def run(self, argv):
        packages = PackageHelper.get_installed_packages()
        keys = packages.keys()
        if len(keys) == 0:
            print "[PACKAGE] not found installed packages"
            return

        print "[PACKAGE] installed packages:"
        keys.sort()
        for k in keys:
            package_data = PackageHelper.get_installed_package_data(
                packages[k]["name"])
            print "[PACKAGE] > %s %s (%s)" % (package_data["name"],
                                              package_data["version"],
                                              package_data["author"])

        print ""