Skip to content

Commit

Permalink
convert sets to list (they were supposed to be lists)
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Dec 12, 2023
1 parent b4f3c42 commit 06595ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions wingetui/PackageManagers/choco.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def __init__(self):
self.Capabilities.SupportsPreRelease = True
self.Capabilities.SupportsCustomSources = True

self.KnownSources = {
self.KnownSources = [
ManagerSource(self, "chocolatey", "https://community.chocolatey.org/api/v2/")
}
]

self.BLACKLISTED_PACKAGE_NAMES = ["Did", "Features?", "Validation", "-", "being", "It", "Error", "L'accs", "Maximum", "This", "Output Is Package name ", "'chocolatey'", "Operable"]
self.BLACKLISTED_PACKAGE_IDS = ["Did", "Features?", "Validation", "-", "being", "It", "Error", "L'accs", "Maximum", "This", "Output is package name ", "operable", "Invalid"]
Expand Down
4 changes: 2 additions & 2 deletions wingetui/PackageManagers/scoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self):
self.Capabilities.Sources.KnowsPackageCount = True
self.Capabilities.Sources.KnowsUpdateDate = True

self.KnownSources = {
self.KnownSources = [
# This list should reflect the one published on https://github.com/ScoopInstaller/Scoop/blob/master/buckets.json
ManagerSource(self, "main", "https://github.com/ScoopInstaller/Main"),
ManagerSource(self, "extras", "https://github.com/ScoopInstaller/Extras"),
Expand All @@ -57,7 +57,7 @@ def __init__(self):
ManagerSource(self, "nonportable", "https://github.com/ScoopInstaller/Nonportable"),
ManagerSource(self, "java", "https://github.com/ScoopInstaller/Java"),
ManagerSource(self, "games", "https://github.com/Calinou/scoop-games"),
}
]

def isEnabled(self) -> bool:
return not getSettings(f"Disable{self.NAME}")
Expand Down
4 changes: 2 additions & 2 deletions wingetui/PackageManagers/winget.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ def __init__(self):
self.BLACKLISTED_PACKAGE_IDS = ["", "have", "the", "Id"]
self.BLACKLISTED_PACKAGE_VERSIONS = ["have", "an", "'winget", "pin'", "have", "an", "Version"]

self.KnownSources = {
self.KnownSources = [
ManagerSource(self, "winget", "https://cdn.winget.microsoft.com/cache"),
ManagerSource(self, "msstore", "https://storeedgefd.dsx.mp.microsoft.com/v9.0"),
}
]

def isEnabled(self) -> bool:
return not getSettings(f"Disable{self.NAME}")
Expand Down

0 comments on commit 06595ba

Please sign in to comment.