Add --force-update option
This commit is contained in:
parent
2839f6fe80
commit
0bad386fbe
@ -8,6 +8,8 @@ Version 1.6.1
|
||||
|
||||
* Add description to help message
|
||||
|
||||
* Add --force-update option to script
|
||||
|
||||
Version 1.6.0
|
||||
-------------
|
||||
|
||||
|
8
bin/pug2
8
bin/pug2
@ -80,6 +80,12 @@ if __name__ == "__main__":
|
||||
help="check if enabled in config file",
|
||||
action="store_true",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-f",
|
||||
"--force-update",
|
||||
help="force update regardless if package lists match",
|
||||
action="store_true",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
config = configparser.ConfigParser()
|
||||
config.read(CONFIG_FILE)
|
||||
@ -113,7 +119,7 @@ if __name__ == "__main__":
|
||||
)
|
||||
print("Gist creation complete.")
|
||||
|
||||
elif package_lists_match(gist_id):
|
||||
elif package_lists_match(gist_id, packages) and not args.force_update:
|
||||
print("Package lists match, no update necessary.")
|
||||
sys.exit(0)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user