~ubuntu-branches/debian/experimental/apt/experimental

« back to all changes in this revision

Viewing changes to cmdline/apt-sortpkgs.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2010-02-18 22:07:23 UTC
  • mfrom: (9.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100218220723-zb7zdh6fmsmp30tr
Tags: 0.7.26~exp2
fix crash when LANGUAGE is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
                                                                        /*}}}*/
14
14
// Include Files                                                        /*{{{*/
15
15
#include <apt-pkg/tagfile.h>
16
 
#include <apt-pkg/contrib/error.h>
17
 
#include <apt-pkg/contrib/configuration.h>
18
 
#include <apt-pkg/contrib/cmndline.h>
 
16
#include <apt-pkg/error.h>
 
17
#include <apt-pkg/configuration.h>
 
18
#include <apt-pkg/cmndline.h>
19
19
#include <apt-pkg/init.h>
20
 
#include <apt-pkg/contrib/strutl.h>
 
20
#include <apt-pkg/strutl.h>
21
21
 
22
22
#include <config.h>
23
23
#include <apti18n.h>
31
31
 
32
32
using namespace std;
33
33
 
34
 
struct PkgName
 
34
struct PkgName                                                          /*{{{*/
35
35
{
36
36
   string Name;
37
37
   string Ver;
55
55
   bool operator >(const PkgName &x) const {return Compare3(x) > 0;};
56
56
   bool operator ==(const PkgName &x) const {return Compare3(x) == 0;};
57
57
};
58
 
 
 
58
                                                                        /*}}}*/
59
59
// DoIt - Sort a single file                                            /*{{{*/
60
60
// ---------------------------------------------------------------------
61
61
/* */
161
161
   return 0;
162
162
}
163
163
                                                                        /*}}}*/
164
 
 
165
 
int main(int argc,const char *argv[])
 
164
int main(int argc,const char *argv[])                                   /*{{{*/
166
165
{
167
166
   CommandLine::Args Args[] = {
168
167
      {'h',"help","help",0},
206
205
   
207
206
   return 0;   
208
207
}
 
208
                                                                        /*}}}*/