src: fix qa issues
This commit is contained in:
parent
ea1bb114e5
commit
8066f548d0
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
|
||||
"""
|
||||
Original author: XGQT
|
||||
Licensed under the ISC License
|
||||
@ -13,12 +14,13 @@ How to use:
|
||||
- run this script
|
||||
"""
|
||||
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
|
||||
metadatas = [
|
||||
METADATAS = [
|
||||
os.path.join(dp, f)
|
||||
for dp, _, filenames in os.walk(".")
|
||||
for f in filenames if os.path.splitext(f)[1] == '.xml'
|
||||
@ -26,7 +28,7 @@ metadatas = [
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
for metadata in metadatas:
|
||||
for metadata in METADATAS:
|
||||
try:
|
||||
_, cat, pkg, _ = metadata.split("/")
|
||||
print("Package: %s/%s" % (cat, pkg))
|
||||
|
Loading…
Reference in New Issue
Block a user