Skip to content

Commit

Permalink
Revert "fix: resolve filesystem app dependencies (frappe#1450)" (frap…
Browse files Browse the repository at this point in the history
…pe#1452)

This reverts commit f3b55f7.
  • Loading branch information
ankush authored May 9, 2023
1 parent f3b55f7 commit 082692c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,16 @@ def setup_details(self):
if not self.is_repo:
self.repo = self.app_name = self.name
return

# fetch meta from installed apps
if self.bench and os.path.exists(os.path.join(self.bench.name, "apps", self.name)):
self.mount_path = os.path.join(self.bench.name, "apps", self.name)
self.from_apps = True
self.on_disk = True
self._setup_details_from_mounted_disk()

# fetch meta for repo on mounted disk
elif os.path.exists(self.mount_path):
self.on_disk = True
self._setup_details_from_mounted_disk()

# fetch meta for repo from remote git server - traditional get-app url
elif is_git_url(self.name):
Expand Down

0 comments on commit 082692c

Please sign in to comment.