git » repo-mgmt.git » commit 2f81fb5

python and whitespace

author Urja (ARMLFS builder)
2025-09-21 17:25:57 UTC
committer Urja (ARMLFS builder)
2025-09-21 17:25:57 UTC
parent 06eae5c116bb4d4ea4c5cf400f9241bc8ba15d44

python and whitespace

publish-pkg.py +12 -12

diff --git a/publish-pkg.py b/publish-pkg.py
index 2e8b900..50586ea 100755
--- a/publish-pkg.py
+++ b/publish-pkg.py
@@ -68,21 +68,21 @@ def filewalk(top):
 
 
 for root, entry in filewalk('.'):
-	if entry.name.endswith('.pkg.tar.xz'):
-		if not entry.is_file():
-			continue
-		if root not in bases.keys():
-			bases[root] = []
-                builddirs.add(builddir(os.path.join(root, entry.name)))
-		bases[root].append(entry.name)
-		count+=1
-		#print(os.path.join(root, entry.name))
+    if entry.name.endswith('.pkg.tar.xz'):
+        if not entry.is_file():
+            continue
+        if root not in bases.keys():
+            bases[root] = []
+        builddirs.add(builddir(os.path.join(root, entry.name)))
+        bases[root].append(entry.name)
+        count+=1
+        #print(os.path.join(root, entry.name))
 
 
 if count == 0:
-	print("Nothing to do (?)")
-	subc(["mount", "/sources/pkg"])
-	sys.exit(0)
+    print("Nothing to do (?)")
+    subc(["mount", "/sources/pkg"])
+    sys.exit(0)
 
 print(f"Found {count} packages in these repos:")
 for k in bases.keys():