File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff 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- "\n Operation : 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.\n Otherwise,you may fail to update.\n " )
536- print ("Folder to delete: %s" % (gitdir ))
533+ print ("\n Start 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 )
You can’t perform that action at this time.
0 commit comments