Skip to content

Commit

Permalink
Add cached command debuging printout
Browse files Browse the repository at this point in the history
  • Loading branch information
JacekJagosz committed May 3, 2022
1 parent e02e5bc commit 3f921ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ypkg2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def build_package(filename, outputDir):
ctx = YpkgContext(spec)

need_verify = []
console_ui.emit_info("Source", "Test!")
for src in manager.sources:
if src.cached(ctx):
need_verify.append(src)
Expand Down
1 change: 1 addition & 0 deletions ypkg2/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def remove(self, context):

def cached(self, context):
bpath = self._get_full_path(context)
console_ui.emit_info("Source", "Cached path: {}".format(bpath))
return os.path.exists(bpath)


Expand Down

0 comments on commit 3f921ea

Please sign in to comment.