Re: [Pcbsd-developer] Patch for PBIDelete
Status: Beta
Brought to you by:
kmoore134
From: Kris M. <kri...@co...> - 2006-04-20 15:37:13
|
Good idea! I'll get this thrown in! --- Kris Moore Matteo Niccoli wrote: > This patch sort in case-sensitive alphabetical order the output of > PBIdelete. Maybe something of similar should be done for pbm.ui.h > > > > > ------------------------------------------------------------------------ > > --- main.cpp Tue Jan 17 18:16:21 2006 > +++ ../main.cpp Wed Apr 19 16:39:41 2006 > @@ -362,6 +362,7 @@ > int i = 0; > QString tmp; > QString ProgDirName; > + QStringList ProgList; > > cout << "Installed PBI's\n----------\n"; > > @@ -374,11 +375,12 @@ > tmp = ProgVer[i]; > tmp.replace(" ", ""); > ProgDirName = ProgDirName + tmp; > - cout << ProgDirName << "\n"; > + ProgList << ProgDirName; > i++; > } > > - > + ProgList.sort(); > + cout << ProgList.join( "\n" ) << endl; > } > > > > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.4.3/317 - Release Date: 4/18/2006 |