예제 #1
0
	def list(self, pkgs = None):
		SyncPkg.list(self, pkgs)
		
		cmd = 'dpkg -l'
		
		if pkgs:
			cmd = cmd + ' ' + string.join(pkgs)
		
		synctool_lib.DRY_RUN = False
		synctool_lib.shell_command(cmd)
		synctool_lib.DRY_RUN = self.dryrun
예제 #2
0
	def list(self, pkgs = None):
		SyncPkg.list(self, pkgs)
		
		cmd = 'rpm -qa'			# zypper has no 'list-installed' ?
		
		if pkgs:
			cmd = cmd + ' ' + string.join(pkgs)
		
		synctool_lib.DRY_RUN = False
		synctool_lib.shell_command(cmd)
		synctool_lib.DRY_RUN = self.dryrun
예제 #3
0
    def list(self, pkgs=None):
        SyncPkg.list(self, pkgs)

        cmd = "pacman -Q"

        if pkgs:
            cmd = cmd + "s " + string.join(pkgs)  # use pacman -Qs ...

        synctool_lib.DRY_RUN = False
        synctool_lib.shell_command(cmd)
        synctool_lib.DRY_RUN = self.dryrun
예제 #4
0
	def list(self, pkgs = None):
		SyncPkg.list(self, pkgs)
		
		cmd = 'pkg_info'
		
		if pkgs:
			cmd = cmd + ' ' + string.join(pkgs)
		else:
			cmd = cmd + ' -a'		# list all installed packages
		
		synctool_lib.DRY_RUN = False
		synctool_lib.shell_command(cmd)
		synctool_lib.DRY_RUN = self.dryrun