~ubuntu-branches/ubuntu/trusty/apt/trusty

« back to all changes in this revision

Viewing changes to cmdline/apt-sortpkgs.cc

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2014-04-01 17:48:58 UTC
  • mfrom: (1.4.87 sid)
  • Revision ID: package-import@ubuntu.com-20140401174858-4mv29mm29zu22fn1
Tags: 1.0.1ubuntu1
merge with the debian/sid 1.0.1 version
(LP: #1302033)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include <vector>
27
27
#include <algorithm>
28
 
 
29
 
#include <locale.h>
30
 
#include <unistd.h>
 
28
#include <stdio.h>
 
29
#include <iostream>
 
30
#include <string>
31
31
 
32
32
#include <apti18n.h>
33
33
                                                                        /*}}}*/
62
62
// DoIt - Sort a single file                                            /*{{{*/
63
63
// ---------------------------------------------------------------------
64
64
/* */
65
 
bool DoIt(string InFile)
 
65
static bool DoIt(string InFile)
66
66
{
67
67
   FileFd Fd(InFile,FileFd::ReadOnly);
68
68
   pkgTagFile Tags(&Fd);
142
142
// ShowHelp - Show the help text                                        /*{{{*/
143
143
// ---------------------------------------------------------------------
144
144
/* */
145
 
int ShowHelp()
 
145
static int ShowHelp()
146
146
{
147
147
   ioprintf(cout,_("%s %s for %s compiled on %s %s\n"),PACKAGE,PACKAGE_VERSION,
148
148
            COMMON_ARCH,__DATE__,__TIME__);