From 78432354e3fd2b2ef931aebd1c5f2cd49f59b60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Tue, 7 Aug 2018 20:56:47 +0200 Subject: [PATCH] comps-sync.py: remove deplicate func def & fixup comment --- comps-sync.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/comps-sync.py b/comps-sync.py index 20685fe..68a8a4c 100755 --- a/comps-sync.py +++ b/comps-sync.py @@ -160,21 +160,13 @@ for desktop in [ 'gnome-desktop', 'kde-desktop', 'xfce-desktop' ]: print(' ' + pkg) manifest_packages.remove(pkg) - # Look for packages in workstation but not in the manifest + # Look for packages in comps but not in the manifest ws_added = set() for pkg in ws_pkgs: if pkg not in manifest_packages: ws_added.add(pkg) manifest_packages.add(pkg) - def format_pkgtype(n): - if n == libcomps.PACKAGE_TYPE_DEFAULT: - return 'default' - elif n == libcomps.PACKAGE_TYPE_MANDATORY: - return 'mandatory' - else: - assert False - n_comps_new = len(ws_added) if n_comps_new == 0: print("All comps packages are already listed in manifest.")