Skip to content

Commit d01fd8a

Browse files
authored
kdePackages.spectacle: 6.3.1 -> 6.3.1.2 (#383311)
2 parents ee407ef + 8ddfa70 commit d01fd8a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

maintainers/scripts/kde/generate-sources.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env nix-shell
2-
#!nix-shell -i python3 -p "python3.withPackages(ps: [ ps.beautifulsoup4 ps.click ps.httpx ps.jinja2 ps.pyyaml ])"
2+
#!nix-shell -i python3 -p "python3.withPackages(ps: [ ps.beautifulsoup4 ps.click ps.httpx ps.jinja2 ps.packaging ps.pyyaml ])"
33
import base64
44
import binascii
55
import json
@@ -11,6 +11,7 @@
1111
import click
1212
import httpx
1313
import jinja2
14+
import packaging.version as v
1415

1516
import utils
1617

@@ -104,6 +105,12 @@ def main(set: str, version: str, nixpkgs: pathlib.Path, sources_url: Optional[st
104105
hash = client.get(url + ".sha256").text.split(" ", maxsplit=1)[0]
105106
assert hash
106107

108+
if existing := results.get(project_name):
109+
old_version = existing["version"]
110+
if v.parse(old_version) > v.parse(version):
111+
print(f"{project_name} {old_version} is newer than {version}, skipping...")
112+
continue
113+
107114
results[project_name] = {
108115
"version": version,
109116
"url": "mirror://kde" + urlparse(url).path,

pkgs/kde/generated/sources/plasma.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@
315315
"hash": "sha256-vy5JcIKk5bYpa4NZKYkNI9qbobPbSU+GEjfWlvbEmb8="
316316
},
317317
"spectacle": {
318-
"version": "6.3.1",
319-
"url": "mirror://kde/stable/plasma/6.3.1/spectacle-6.3.1.tar.xz",
320-
"hash": "sha256-DzZLBd/MDGPB62luWTGPg6nIPUFi9WVrT6X+KdrMgU4="
318+
"version": "6.3.1.2",
319+
"url": "mirror://kde/stable/plasma/6.3.1/spectacle-6.3.1.2.tar.xz",
320+
"hash": "sha256-g35ejQ745SL01qN9pInk+G2DZJkfz3lsWP0FJvgc+go="
321321
},
322322
"systemsettings": {
323323
"version": "6.3.1",

0 commit comments

Comments
 (0)