Skip to content

Commit 521a775

Browse files
committed
Merge branch 'feature/cleanup'
2 parents b8efccd + 3539d5f commit 521a775

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tetherback/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from .tetherback import main
22

3-
main()
3+
if __name__=='__main__':
4+
main()

tetherback/adb_stuff.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from . import adb_wrapper
1+
from sys import stderr
2+
import time
23

34
def really_mount(adb, dev, node, mode='ro'):
45
for opts in (mode, 'remount,'+mode):

tetherback/tetherback.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def plan_backup(args):
156156
# Build table of partitions requested for backup
157157
if args.nandroid:
158158
rp = args.extra + [x for x in ('boot','recovery','system','userdata','cache') if getattr(args, x)]
159-
plan = odict((p,BackupPlan('%s.tar.gz'%p, None)) for p in rp)
159+
plan = odict((p,BackupPlan('%s.emmc.gz'%p, None)) for p in rp)
160160
else:
161161
rp = args.extra + [x for x in ('boot','recovery') if getattr(args, x)]
162162
plan = odict((p,BackupPlan('%s.emmc.win'%p, None)) for p in rp)
@@ -187,7 +187,6 @@ def create_backupdir(args, timestamp=None):
187187

188188
btype = 'nandroid' if args.nandroid else 'twrp'
189189
backupdir = os.path.join(args.output_path, btype + '-backup-' + timestamp.strftime('%Y-%m-%d--%H-%M-%S'))
190-
print("Saving backup images in %s/ ..." % backupdir, file=stderr)
191190

192191
if not os.path.exists(args.output_path):
193192
os.mkdir(args.output_path)

0 commit comments

Comments
 (0)