Changeset afa0da8


Ignore:
Timestamp:
Apr 25, 2013 11:06:31 AM (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1
Children:
ad90f5d
Parents:
48831cd
Message:

Now we can add / remove pkgng packages via a GUI!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-pkgmanager/mainWin.cpp

    r7541802 rafa0da8  
    683683void mainWin::slotStartNGChanges() 
    684684{ 
    685  
     685  // Init the pkg process 
     686  prepPkgProcess(); 
     687 
     688  // Create our runlist of package commands 
     689  QStringList pCmds; 
     690   
     691  if ( ! pkgRemoveList.isEmpty() ) { 
     692    if ( wDir.isEmpty() ) 
     693      pCmds << "pkg" << "delete" << "-R" << "-y" << pkgRemoveList.join(" "); 
     694    else 
     695      pCmds << "chroot" << "wDir" << "pkg" << "delete" << "-R" << "-y" << pkgRemoveList.join(" "); 
     696    pkgCmdList << pCmds; 
     697  } 
     698          
     699  pCmds.clear(); 
     700 
     701  if ( ! pkgAddList.isEmpty() ) { 
     702    if ( wDir.isEmpty() ) 
     703      pCmds << "pc-pkg" << "install" << "-y" << pkgAddList.join(" "); 
     704    else 
     705      pCmds << "chroot" << "wDir" << "pc-pkg" << "install" << "-y" << pkgAddList.join(" "); 
     706    pkgCmdList << pCmds; 
     707  } 
     708 
     709  // Lets kick it off now 
     710  startPkgProcess(); 
    686711} 
    687712 
Note: See TracChangeset for help on using the changeset viewer.