addftool 0.0.1__py3-none-any.whl → 0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- addftool/blob.py +8 -1
- {addftool-0.0.1.dist-info → addftool-0.0.2.dist-info}/METADATA +1 -1
- addftool-0.0.2.dist-info/RECORD +9 -0
- {addftool-0.0.1.dist-info → addftool-0.0.2.dist-info}/WHEEL +1 -1
- addftool-0.0.1.dist-info/RECORD +0 -9
- {addftool-0.0.1.dist-info → addftool-0.0.2.dist-info}/LICENSE +0 -0
- {addftool-0.0.1.dist-info → addftool-0.0.2.dist-info}/entry_points.txt +0 -0
- {addftool-0.0.1.dist-info → addftool-0.0.2.dist-info}/top_level.txt +0 -0
addftool/blob.py
CHANGED
|
@@ -73,7 +73,9 @@ def install_main(args):
|
|
|
73
73
|
command = "sudo " + command
|
|
74
74
|
execute_command(command, script_writer)
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
print("Install packages: ", args.packages)
|
|
77
|
+
|
|
78
|
+
command = f"apt-get install {args.packages} -y"
|
|
77
79
|
if args.sudo:
|
|
78
80
|
command = "sudo " + command
|
|
79
81
|
execute_command(command, script_writer)
|
|
@@ -166,6 +168,7 @@ def main():
|
|
|
166
168
|
subparsers = parser.add_subparsers(dest='command', help='Sub-command help')
|
|
167
169
|
install_parser = subparsers.add_parser('install', help='Install help')
|
|
168
170
|
install_parser.add_argument("-o", "--output_script", help="output script", default=None)
|
|
171
|
+
install_parser.add_argument("--packages", help="packages", default="fuse3 blobfuse2 azcopy")
|
|
169
172
|
install_parser.add_argument("--sudo", help="sudo", action="store_true")
|
|
170
173
|
|
|
171
174
|
mount_parser = subparsers.add_parser('mount', help='Mount help')
|
|
@@ -180,6 +183,10 @@ def main():
|
|
|
180
183
|
|
|
181
184
|
args = parser.parse_args()
|
|
182
185
|
|
|
186
|
+
# check current user, set --sudo if current user is not root
|
|
187
|
+
if os.getuid() != 0:
|
|
188
|
+
args.sudo = True
|
|
189
|
+
|
|
183
190
|
if args.command == 'install':
|
|
184
191
|
install_main(args)
|
|
185
192
|
elif args.command == 'mount':
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
addftool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
addftool/blob.py,sha256=bPtnt0T79jdkMjdJFp_wExvaoxlclbhw9cTw7Iug3rY,6437
|
|
3
|
+
addftool/util.py,sha256=gx-pqNJk31tmWtRJvZrIkI15ER7QZg9FtaM_OyP0JqU,975
|
|
4
|
+
addftool-0.0.2.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
|
|
5
|
+
addftool-0.0.2.dist-info/METADATA,sha256=qv43J1fLZpinNN5oGkExEcoVsDCHAuots7BrWTkw1So,149
|
|
6
|
+
addftool-0.0.2.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
7
|
+
addftool-0.0.2.dist-info/entry_points.txt,sha256=H3Z3iWsLB1CFdckedIA652_3tWaNS5Rl7fFWgFaFRIc,48
|
|
8
|
+
addftool-0.0.2.dist-info/top_level.txt,sha256=jqj56-plrBbyzY0tIxB6wPzjAA8kte4hUlajyyQygN4,9
|
|
9
|
+
addftool-0.0.2.dist-info/RECORD,,
|
addftool-0.0.1.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
addftool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
addftool/blob.py,sha256=d36wu7acIyfF6mcm2iQqVDZ-kg1cvDr3rSFCyPQpdpA,6175
|
|
3
|
-
addftool/util.py,sha256=gx-pqNJk31tmWtRJvZrIkI15ER7QZg9FtaM_OyP0JqU,975
|
|
4
|
-
addftool-0.0.1.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
|
|
5
|
-
addftool-0.0.1.dist-info/METADATA,sha256=RoIRgv0J85qVBp0-OXQC1lRsnBDZE4ecgnyXUJsJ93A,149
|
|
6
|
-
addftool-0.0.1.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
7
|
-
addftool-0.0.1.dist-info/entry_points.txt,sha256=H3Z3iWsLB1CFdckedIA652_3tWaNS5Rl7fFWgFaFRIc,48
|
|
8
|
-
addftool-0.0.1.dist-info/top_level.txt,sha256=jqj56-plrBbyzY0tIxB6wPzjAA8kte4hUlajyyQygN4,9
|
|
9
|
-
addftool-0.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|