Skip to content

Commit

Permalink
fix: printitng for post_install
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Jul 19, 2024
1 parent d6bcfa1 commit 92f4429
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,14 @@ jobs:
git -C "apps/erpnext" remote set-url upstream https://github.com/frappe/erpnext.git
git -C "apps/india_compliance" remote set-url upstream https://github.com/resilient-tech/india-compliance.git
git -C "apps/frappe" fetch --depth 1 upstream tag v14.0.0
git -C "apps/erpnext" fetch --depth 1 upstream tag v14.0.0
git -C "apps/india_compliance" fetch --depth 1 upstream tag v14.0.0
echo "checkout to v14.0.0"
git -C "apps/frappe" checkout -q -f v14.0.0
git -C "apps/erpnext" checkout -q -f v14.0.0
git -C "apps/india_compliance" checkout -q -f v14.0.0
bench setup requirements --dev
bench --site test_site migrate
# git -C "apps/frappe" fetch --depth 1 upstream tag v14.0.0
# git -C "apps/erpnext" fetch --depth 1 upstream tag v14.0.0
# git -C "apps/india_compliance" fetch --depth 1 upstream tag v14.0.0
# echo "checkout to v14.0.0"
# git -C "apps/frappe" checkout -q -f v14.0.0
# git -C "apps/erpnext" checkout -q -f v14.0.0
# git -C "apps/india_compliance" checkout -q -f v14.0.0
function update_to_version() {
version=$1
Expand Down
4 changes: 3 additions & 1 deletion india_compliance/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"update_gst_accounts", # this is an India Compliance patch, but needs priority
"update_itc_amounts",
## India Compliance
"hello_ic",
"set_gst_tax_type",
"update_state_name_to_puducherry",
"rename_import_of_capital_goods",
Expand Down Expand Up @@ -77,9 +78,10 @@ def after_install():


def run_post_install_patches():
print("in post_install patch")
if not frappe.db.exists("Company", {"country": "India"}):
return

print("not returning")
frappe.flags.in_patch = True

try:
Expand Down

0 comments on commit 92f4429

Please sign in to comment.