File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -511,11 +511,9 @@ def package_update():
511511 for pkg in casedelete :
512512 dirpath = pkg ['path' ]
513513 ver = pkg ['ver' ]
514- #print 'ver is :',ver[1:]
515514 if dirpath [0 ] == '/' or dirpath [0 ] == '\\ ' :
516515 dirpath = dirpath [1 :]
517- #dirpath = dirpath.replace('/', '\\')
518- dirpath = os .path .basename (dirpath )
516+ dirpath = os .path .basename (dirpath .replace ('/' , '\\ ' ))
519517 #print "basename:",os.path.basename(dirpath)
520518 removepath = os .path .join (bsp_packages_path , dirpath )
521519
@@ -553,7 +551,6 @@ def package_update():
553551 else :
554552 if not os .path .isdir (removepath ):
555553 removepath = removepath + '-' + ver
556- #print 'removepath' + removepath
557554 print ("Start to remove %s, please wait...\n " % removepath )
558555 pkgsdb .deletepackdir (removepath , dbsqlite_pathname )
559556
You can’t perform that action at this time.
0 commit comments