Skip to content

Commit 92cf2ab

Browse files
committed
pisi.operations.upgrade.upgrade(): Revert to returning None
1 parent bb14fc3 commit 92cf2ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pisi/operations/upgrade.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,11 @@ def upgrade(packages = [], repo = None):
252252
finally:
253253
ctx.exec_usysconf()
254254

255-
return True
255+
# Prior to 2c63650, this function had no return statement at all on the "complete" codepath.
256+
# 2c63650 added a "return True". Unfortunately, it appears that "False" means "Ask the user for confirmation",
257+
# "True" means "the operation failed", and "None" means "Success". Why? No idea! But removing the return statement
258+
# or returning None fixes #173, so... do what works, I guess.
259+
return None
256260

257261

258262
def plan_upgrade(A, force_replaced=True, replaces=None):

0 commit comments

Comments
 (0)