コード例 #1
0
ファイル: pm.py プロジェクト: 5l1v3r1/dtf
    def print_installed_binaries(self, verbosity):
        """Print installed binaries"""

        binary_list = packagemanager.get_binaries()

        # If we are trying to be quiet, just print each item.
        if verbosity == LIST_QUIET:
            for binary in binary_list:
                print(binary.name)
            return

        # Otherwise, iterate over and print more
        print('Installed Binaries')

        for binary in binary_list:

            # Format version
            version = self.format_version(binary.version)

            print("\t%s (%s)" % (binary.name, version))
            if verbosity == LIST_VERBOSE:
                print("\t   About: %s" % binary.about)
                print("\t   Author: %s" % binary.author)

        return 0
コード例 #2
0
ファイル: pm.py プロジェクト: 5l1v3r1/dtf
    def generate_export_items(cls):
        """Create a list of items"""

        items = list()

        # Get all binaries
        for binary in packagemanager.get_binaries():

            binary.install_name = binary.name
            binary.local_name = "%s/%s" % (DTF_BINARIES_DIR, binary.name)
            items.append(binary)

        # Get all libraries
        for library in packagemanager.get_libraries():

            library.install_name = library.name
            library.local_name = "%s/%s" % (DTF_LIBRARIES_DIR, library.name)
            items.append(library)

        # Get all modules
        for module in packagemanager.get_modules():

            module.install_name = module.name
            module.local_name = "%s/%s" % (DTF_MODULES_DIR, module.name)
            items.append(module)

        # Get all packages
        for package in packagemanager.get_packages():

            package.install_name = package.name
            package.local_name = "%s/%s" % (DTF_PACKAGES_DIR, package.name)
            items.append(package)

        return items
コード例 #3
0
ファイル: pm.py プロジェクト: Andy10101/dtf
    def generate_export_items(self):

        """Create a list of items"""

        items = list()

        # Get all binaries
        for binary in packagemanager.get_binaries():

            binary.local_name = "binaries/%s" % binary.name
            binary.install_name = "%s/%s" % (DTF_BINARIES_DIR, binary.name)
            items.append(binary)

        # Get all libraries
        for library in packagemanager.get_libraries():

            library.local_name = "libraries/%s" % library.name
            library.install_name = "%s/%s" % (DTF_LIBRARIES_DIR, library.name)
            items.append(library)

        # Get all modules
        for module in packagemanager.get_modules():

            module.local_name = "modules/%s" % module.name
            module.install_name = "%s/%s" % (DTF_MODULES_DIR, module.name)
            items.append(module)

        # Get all packages
        for package in packagemanager.get_packages():

            package.local_name = "packages/%s" % package.name
            package.install_name = "%s/%s" % (DTF_PACKAGES_DIR, package.name)
            items.append(package)

        return items
コード例 #4
0
ファイル: pm.py プロジェクト: seakinghuster/dtf
    def print_installed_binaries(self, verbose):
        """Print installed binaries"""

        print "Installed Binaries"

        for binary in packagemanager.get_binaries():

            # Format version
            version = self.format_version(binary.minor_version,
                                          binary.major_version)

            print "\t%s (%s)" % (binary.name, version)
            if verbose:
                print "\t   About: %s" % binary.about
                print "\t   Author: %s" % binary.author
                print "\t   Health: %s" % binary.health

        return 0
コード例 #5
0
ファイル: pm.py プロジェクト: Andy10101/dtf
    def print_installed_binaries(self, verbose):

        """Print installed binaries"""

        print "Installed Binaries"

        for binary in packagemanager.get_binaries():

            # Format version
            version = self.format_version(binary.minor_version,
                                          binary.major_version)

            print "\t%s (%s)" % (binary.name, version)
            if verbose:
                print "\t   About: %s" % binary.about
                print "\t   Author: %s" % binary.author
                print "\t   Health: %s" % binary.health

        return 0