syncpackage: don't login to LP if using --simulate

No need to login to LP if no real action is being taken.
This commit is contained in:
Dan Streetman 2021-06-02 14:55:17 -04:00
parent f25f815bef
commit c2ea95c067

View File

@ -614,7 +614,7 @@ def main():
# devel for copyPackage and changelogUrl
kwargs = {'service': options.lpinstance,
'api_version': 'devel'}
if options.lp:
if options.lp and not options.simulate:
Launchpad.login(**kwargs)
else:
Launchpad.login_anonymously(**kwargs)