mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
Cosmetics for diff
This commit is contained in:
parent
d260e23787
commit
175fd4156e
1 changed files with 7 additions and 8 deletions
|
@ -5,11 +5,6 @@ import requests
|
|||
import os
|
||||
import subprocess
|
||||
|
||||
# ./autopatch.py --rebuild-cache
|
||||
# ./autopatch.py --apply my_patch
|
||||
# ./autopatch.py --diff
|
||||
# ./autopatch.py --push my_patch
|
||||
|
||||
catalog = requests.get("https://raw.githubusercontent.com/YunoHost/apps/master/apps.json").json()
|
||||
|
||||
my_env = os.environ.copy()
|
||||
|
@ -83,10 +78,14 @@ def apply(patch):
|
|||
def diff():
|
||||
|
||||
for app in apps():
|
||||
print(app["id"])
|
||||
print("----------------------------")
|
||||
folder = os.path.join(".apps_cache", app["id"])
|
||||
os.system(f"cd {folder} && git diff && echo $?")
|
||||
if bool(subprocess.check_output(f"cd {folder} && git diff", shell=True).strip().decode("utf-8")):
|
||||
print("\n\n\n")
|
||||
print("=================================")
|
||||
print("Changes in : " + app["id"])
|
||||
print("=================================")
|
||||
print("\n")
|
||||
os.system(f"cd {folder} && git diff")
|
||||
|
||||
|
||||
def push(patch):
|
||||
|
|
Loading…
Add table
Reference in a new issue