Skip to content

Commit

Permalink
Fixed scan test
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-balades committed Jan 2, 2024
1 parent 70cc94e commit 8c9b9a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions check_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@

download_url = pkg_data["download_url"]

print("CHECKING " + pkg_name + "...")
print("CHECKING " + pkg_name + "...", end=' ')

# clone the package into ".temp" folder
os.system("git clone " + download_url + " .temp --quiet --depth 1")

# See if the package has a "sn.toml" file
if os.path.isfile(".temp/sn.toml"):
# If it does, then it's a valid package
print(pkg_name + ": OK")
print("OK")
else:
# If it doesn't, then it's an invalid package
print(pkg_name + ": INVALID")
print("INVALID")
has_error = True

# Delete the ".temp" folder
Expand Down

0 comments on commit 8c9b9a9

Please sign in to comment.