Skip to content

Commit 9e07f58

Browse files
committed
【完善】:删除软件包提示信息
1 parent 5acbd92 commit 9e07f58

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

cmds/cmd_package.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -518,26 +518,23 @@ def package_update():
518518
dirpath = os.path.basename(dirpath)
519519
#print "basename:",os.path.basename(dirpath)
520520
removepath = os.path.join(bsp_packages_path, dirpath)
521-
521+
522522
# Handles the deletion of git repository folders with version Numbers
523523
git_removepath = removepath + '-' + ver
524524
removepath_git = os.path.join(git_removepath, '.git')
525525
#print "floder to delete",removepath
526526
#print "removepath_git to delete",removepath_git
527-
527+
528528
# Delete. Git directory.
529529

530530
if os.path.isdir(git_removepath) and os.path.isdir(removepath_git):
531531
gitdir = git_removepath
532532

533-
print (
534-
"\nOperation : Delete a git package or change the version of a package.")
535-
print ("If you want to change the version of a package,you should aslo delete the old package before update.\nOtherwise,you may fail to update.\n")
536-
print ("Folder to delete: %s" % (gitdir))
533+
print ("\nStart to remove %s, please wait...\n" % gitdir)
537534
print ("The folder is managed by git. Do you want to delete this folder?\n")
538535

539536
rc = raw_input(
540-
'Press the Y Key to delete the folder or just press Enter to keep the file:')
537+
'Press the Y Key to delete the folder or just press Enter to keep them :')
541538
if rc == 'y' or rc == 'Y':
542539
if platform.system() != "Windows":
543540
shutil.rmtree(gitdir)

0 commit comments

Comments
 (0)