mirror of
https://github.com/funkemunky/KDE-x86_64-v4-Fedora.git
synced 2026-05-31 09:01:56 +00:00
correcting python error
This commit is contained in:
@@ -77,8 +77,20 @@ jobs:
|
||||
|
||||
source_manifest = Path(os.environ["SOURCE_MANIFEST"])
|
||||
source_map_path = Path(os.environ["SOURCE_MAP"])
|
||||
requested_source_map_path = source_map_path
|
||||
package_kind = os.environ["PACKAGE_KIND"].strip()
|
||||
package_input = os.environ["PACKAGE_INPUT"]
|
||||
if not source_manifest.exists():
|
||||
raise SystemExit(f"Source manifest not found: {source_manifest}")
|
||||
if not source_map_path.exists() and source_map_path.name == "binary-map.tsv":
|
||||
compatibility_path = source_map_path.with_name("source-map.tsv")
|
||||
if compatibility_path.exists():
|
||||
source_map_path = compatibility_path
|
||||
if not source_map_path.exists():
|
||||
raise SystemExit(
|
||||
f"Source map not found: {requested_source_map_path}. "
|
||||
f"Expected an existing TSV such as {requested_source_map_path.with_name('source-map.tsv')}"
|
||||
)
|
||||
source_packages = [
|
||||
line.strip()
|
||||
for line in source_manifest.read_text(encoding="ascii").splitlines()
|
||||
|
||||
@@ -77,8 +77,20 @@ jobs:
|
||||
|
||||
source_manifest = Path(os.environ["SOURCE_MANIFEST"])
|
||||
source_map_path = Path(os.environ["SOURCE_MAP"])
|
||||
requested_source_map_path = source_map_path
|
||||
package_kind = os.environ["PACKAGE_KIND"].strip()
|
||||
package_input = os.environ["PACKAGE_INPUT"]
|
||||
if not source_manifest.exists():
|
||||
raise SystemExit(f"Source manifest not found: {source_manifest}")
|
||||
if not source_map_path.exists() and source_map_path.name == "binary-map.tsv":
|
||||
compatibility_path = source_map_path.with_name("source-map.tsv")
|
||||
if compatibility_path.exists():
|
||||
source_map_path = compatibility_path
|
||||
if not source_map_path.exists():
|
||||
raise SystemExit(
|
||||
f"Source map not found: {requested_source_map_path}. "
|
||||
f"Expected an existing TSV such as {requested_source_map_path.with_name('source-map.tsv')}"
|
||||
)
|
||||
source_packages = [
|
||||
line.strip()
|
||||
for line in source_manifest.read_text(encoding="ascii").splitlines()
|
||||
|
||||
Reference in New Issue
Block a user