You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2022. It is now read-only.
ubports-qa had a few papercuts. Namely:
1. It wouldn't remount the system when installing or updating
2. It was easy for a developer to forget to mount or unmount
(which caused point 1)
3. Failure exits return 0
4. It used the old style of formatting strings which is generally
regarded as bad practice
5. Remounting read-only will fail if anything wakes up and grabs a file
on the rootfs. Handle that and return an error.
6. It didn't lint.
a. Some of the function names clobbered built-in keywords.
This fixes that.
parser=argparse.ArgumentParser(description='The UBports QA scripts allow you to efficiently manage PPAs from repo.ubports.com for testing deb components. See http://docs.ubports.com/en/latest/about/process/ppa.html.')
129
166
subparsers=parser.add_subparsers(help='')
130
167
131
168
parser_install=subparsers.add_parser('install', help='Install a ppa or pull-request', description='Install a ppa or pull-request. See http://docs.ubports.com/en/latest/about/process/ppa.html.')
132
169
parser_install.add_argument('repo', type=str, help='Name of a PPA on repo.ubports.com. Alternatively, if the \'pr\' argument is provided, the name of a git repository can be specified to automatically add the PPA from a pull-request.')
133
170
parser_install.add_argument('pr', type=int, help='Numeric ID of a pull-request on the git repository specified in the \'repo\' argument. If \'repo\' is supposed to be the name of a ppa, the \'pr\' argument should not be specified.', nargs='?', default=-1)
134
-
parser_install.set_defaults(func=install)
171
+
parser_install.set_defaults(func=install_command)
135
172
136
173
parser_remove=subparsers.add_parser('remove', help='Remove and uninstall a PPA', description='Remove and uninstall a ppa')
137
174
parser_remove.add_argument('repo', type=str, help='Name of the ppa')
0 commit comments