dwipe 1.0.2__py3-none-any.whl → 1.0.3__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.
- dwipe/main.py +11 -9
- {dwipe-1.0.2.dist-info → dwipe-1.0.3.dist-info}/METADATA +1 -1
- dwipe-1.0.3.dist-info/RECORD +9 -0
- dwipe-1.0.2.dist-info/RECORD +0 -9
- {dwipe-1.0.2.dist-info → dwipe-1.0.3.dist-info}/LICENSE +0 -0
- {dwipe-1.0.2.dist-info → dwipe-1.0.3.dist-info}/WHEEL +0 -0
- {dwipe-1.0.2.dist-info → dwipe-1.0.3.dist-info}/entry_points.txt +0 -0
- {dwipe-1.0.2.dist-info → dwipe-1.0.3.dist-info}/top_level.txt +0 -0
dwipe/main.py
CHANGED
|
@@ -307,6 +307,7 @@ class DeviceInfo:
|
|
|
307
307
|
state = 'W' if pct >= 100 else 's'
|
|
308
308
|
dt = datetime.datetime.fromtimestamp(marker.unixtime)
|
|
309
309
|
entry.marker = f'{state} {pct}% {marker.mode} {dt.strftime('%Y/%m/%d %H:%M')}'
|
|
310
|
+
entry.state = state
|
|
310
311
|
|
|
311
312
|
return entry
|
|
312
313
|
|
|
@@ -333,8 +334,6 @@ class DeviceInfo:
|
|
|
333
334
|
if entry.mounts:
|
|
334
335
|
entry.state = 'Mnt'
|
|
335
336
|
parent.state = 'Mnt'
|
|
336
|
-
elif entry.marker:
|
|
337
|
-
entry.state = entry.marker[0]
|
|
338
337
|
|
|
339
338
|
if self.DB:
|
|
340
339
|
print('\n\nDB: --->>> after parse_lsblk:')
|
|
@@ -532,18 +531,21 @@ class DeviceInfo:
|
|
|
532
531
|
if new_ns:
|
|
533
532
|
if prev_ns.job:
|
|
534
533
|
new_ns.job = prev_ns.job
|
|
535
|
-
new_ns.
|
|
534
|
+
new_ns.dflt = prev_ns.dflt
|
|
535
|
+
|
|
536
536
|
if prev_ns.state == 'Lock':
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
new_ns.state =
|
|
537
|
+
new_ns.state = 'Lock'
|
|
538
|
+
elif new_ns.state not in ('s', 'W'):
|
|
539
|
+
new_ns.state = new_ns.dflt
|
|
540
|
+
if prev_ns.state not in ('s', 'W', 'Busy', 'Unlk'):
|
|
541
|
+
new_ns.state = prev_ns.state # re-infer these
|
|
540
542
|
elif prev_ns.job:
|
|
541
543
|
# unplugged device with job..
|
|
542
544
|
nss[name] = prev_ns # carry forward
|
|
543
545
|
prev_ns.job.do_abort = True
|
|
544
|
-
for name,
|
|
545
|
-
if name not in prev_nss:
|
|
546
|
-
|
|
546
|
+
for name, new_ns in nss.items():
|
|
547
|
+
if name not in prev_nss and new_ns.state not in ('s', 'W'):
|
|
548
|
+
new_ns.state = '^'
|
|
547
549
|
return nss
|
|
548
550
|
|
|
549
551
|
def assemble_partitions(self, prev_nss=None):
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
dwipe/PowerWindow.py,sha256=pQGXsAMeuiHn-vtEiVG0rgW1eCslh3ukC-VrPhH_j3k,28587
|
|
2
|
+
dwipe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
dwipe/main.py,sha256=6Ooj1i7hCrFxVUkvjRphH_-Dxz3dpm201VrZVybiI8A,34309
|
|
4
|
+
dwipe-1.0.3.dist-info/LICENSE,sha256=qB9OdnyyF6WYHiEIXVm0rOSdcf8e2ctorrtWs6CC5lU,1062
|
|
5
|
+
dwipe-1.0.3.dist-info/METADATA,sha256=OBoF-WviZm4MNxeIpHWqF9QeeLnfb1BtQItlk93QBdU,4538
|
|
6
|
+
dwipe-1.0.3.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
7
|
+
dwipe-1.0.3.dist-info/entry_points.txt,sha256=s-gAs_OhS9lr-oVMKii2ZjsLfCSO4-oHV7Wa9oJe-2g,42
|
|
8
|
+
dwipe-1.0.3.dist-info/top_level.txt,sha256=nJT1SUDcOmULgmF9JmYwIIQLmXAIn6qAWW8EdWuxsAg,6
|
|
9
|
+
dwipe-1.0.3.dist-info/RECORD,,
|
dwipe-1.0.2.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
dwipe/PowerWindow.py,sha256=pQGXsAMeuiHn-vtEiVG0rgW1eCslh3ukC-VrPhH_j3k,28587
|
|
2
|
-
dwipe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
dwipe/main.py,sha256=SyM9S69LkyLvhop3JbnlylGvCHzfv-Vgx8Qh2vhh2Ts,34200
|
|
4
|
-
dwipe-1.0.2.dist-info/LICENSE,sha256=qB9OdnyyF6WYHiEIXVm0rOSdcf8e2ctorrtWs6CC5lU,1062
|
|
5
|
-
dwipe-1.0.2.dist-info/METADATA,sha256=1vDa6BrAtgnmLjMO0qxx-K9mbtWKC4rjgvaHG8hcVbc,4538
|
|
6
|
-
dwipe-1.0.2.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
7
|
-
dwipe-1.0.2.dist-info/entry_points.txt,sha256=s-gAs_OhS9lr-oVMKii2ZjsLfCSO4-oHV7Wa9oJe-2g,42
|
|
8
|
-
dwipe-1.0.2.dist-info/top_level.txt,sha256=nJT1SUDcOmULgmF9JmYwIIQLmXAIn6qAWW8EdWuxsAg,6
|
|
9
|
-
dwipe-1.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|