forked from cromer/pamac-classic
fix an annoying syncfirst bug
This commit is contained in:
parent
7c62f77218
commit
99790a3efc
@ -194,5 +194,5 @@ if 'HoldPkg' in pacman_conf.options:
|
||||
holdpkg = pacman_conf.options['HoldPkg']
|
||||
if 'SyncFirst' in pacman_conf.options:
|
||||
syncfirst = pacman_conf.options['SyncFirst']
|
||||
if not 'pamac' in syncfirst:
|
||||
syncfirst.append('pamac')
|
||||
#if not 'pamac' in syncfirst:
|
||||
# syncfirst.append('pamac')
|
||||
|
@ -401,7 +401,7 @@ def sysupgrade(show_updates):
|
||||
if do_syncfirst:
|
||||
error += init_transaction()
|
||||
if not error:
|
||||
for name in to_add:
|
||||
for name in to_update:
|
||||
error += Add(name)
|
||||
else:
|
||||
error += init_transaction()
|
||||
|
Loading…
Reference in New Issue
Block a user