Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Oct 25, 2024
1 parent b9ecdac commit 540c7b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/Package/Apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,14 @@ def update_cache(self):
# TODO debug
# Print apt process with ps
result = subprocess.run(
['ps aux | grep apt'],
['fuser -vik -TERM /var/lib/apt/lists/lock'],
stdout = subprocess.PIPE, # subprocess.PIPE & subprocess.PIPE are alias of 'capture_output = True'
stderr = subprocess.PIPE,
universal_newlines = True, # Alias of 'text = True'
shell = True
)

print('ps: ' + str(result.stdout))
print('fuser: \n' + str(result.stdout))

raise Exception('could not update apt cache: ' + str(e))

Expand Down

0 comments on commit 540c7b8

Please sign in to comment.