Skip to content

Commit

Permalink
vartree: use stat symbols instead of magic numbers
Browse files Browse the repository at this point in the history
This is a purely cosmetic change to improve readability a bit.

Signed-off-by: Henning Schild <[email protected]>
  • Loading branch information
henning-schild committed Sep 20, 2024
1 parent 7b7b261 commit c7c98a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/portage/dbapi/vartree.py
Original file line number Diff line number Diff line change
Expand Up @@ -5753,8 +5753,8 @@ def mergeme(

if bsd_chflags:
bsd_chflags.lchflags(mydest, dflags)
os.chmod(mydest, mystat[0])
os.chown(mydest, mystat[4], mystat[5])
os.chmod(mydest, mymode)
os.chown(mydest, mystat[stat.ST_UID], mystat[stat.ST_GID])
showMessage(f">>> {mydest}/\n")
else:
try:
Expand All @@ -5774,8 +5774,8 @@ def mergeme(
else:
raise
del e
os.chmod(mydest, mystat[0])
os.chown(mydest, mystat[4], mystat[5])
os.chmod(mydest, mymode)
os.chown(mydest, mystat[stat.ST_UID], mystat[stat.ST_GID])
showMessage(f">>> {mydest}/\n")

try:
Expand Down

0 comments on commit c7c98a2

Please sign in to comment.