projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
create non-existent files in edit-sources with 644 instead of 640
[apt.git]
/
apt-private
/
private-moo.cc
diff --git
a/apt-private/private-moo.cc
b/apt-private/private-moo.cc
index 23255db6fbe5eab0e15eef028ce0aa8e33e803dd..a8799915012e9f0b5b4c3063582f68a0703fb652 100644
(file)
--- a/
apt-private/private-moo.cc
+++ b/
apt-private/private-moo.cc
@@
-13,16
+13,20
@@
#include <apt-pkg/cmndline.h>
#include <apt-pkg/strutl.h>
#include <apt-pkg/cmndline.h>
#include <apt-pkg/strutl.h>
-#include <
strings
.h>
-#include <
sstream
>
+#include <
apt-private/private-moo
.h>
+#include <
apt-private/private-output.h
>
-#include "private-moo.h"
-#include "private-output.h"
+#include <stddef.h>
+#include <string.h>
+#include <time.h>
+#include <iostream>
+#include <sstream>
+#include <string>
#include <apti18n.h>
/*}}}*/
#include <apti18n.h>
/*}}}*/
-st
d::string getMooLine() {
/*{{{*/
+st
atic std::string getMooLine() {
/*{{{*/
time_t const timenow = time(NULL);
struct tm special;
localtime_r(&timenow, &special);
time_t const timenow = time(NULL);
struct tm special;
localtime_r(&timenow, &special);
@@
-60,12
+64,12
@@
std::string getMooLine() { /*{{{*/
return out.str();
}
/*}}}*/
return out.str();
}
/*}}}*/
-
bool printMooLine() {
/*{{{*/
+
static bool printMooLine() {
/*{{{*/
std::cerr << getMooLine() << std::endl;
return true;
}
/*}}}*/
std::cerr << getMooLine() << std::endl;
return true;
}
/*}}}*/
-bool DoMoo1(CommandLine &
CmdL)
/*{{{*/
+bool DoMoo1(CommandLine &
)
/*{{{*/
{
// our trustworthy super cow since 2001
if (_config->FindI("quiet") >= 2)
{
// our trustworthy super cow since 2001
if (_config->FindI("quiet") >= 2)
@@
-83,7
+87,7
@@
bool DoMoo1(CommandLine &CmdL) /*{{{*/
return true;
}
/*}}}*/
return true;
}
/*}}}*/
-bool DoMoo2(CommandLine &
CmdL)
/*{{{*/
+bool DoMoo2(CommandLine &
)
/*{{{*/
{
// by Fernando Ribeiro in lp:56125
if (_config->FindI("quiet") >= 2)
{
// by Fernando Ribeiro in lp:56125
if (_config->FindI("quiet") >= 2)
@@
-117,7
+121,7
@@
bool DoMoo2(CommandLine &CmdL) /*{{{*/
return true;
}
/*}}}*/
return true;
}
/*}}}*/
-bool DoMoo3(CommandLine &
CmdL)
/*{{{*/
+bool DoMoo3(CommandLine &
)
/*{{{*/
{
// by Robert Millan in deb:134156
if (_config->FindI("quiet") >= 2)
{
// by Robert Millan in deb:134156
if (_config->FindI("quiet") >= 2)
@@
-134,7
+138,7
@@
bool DoMoo3(CommandLine &CmdL) /*{{{*/
return true;
}
/*}}}*/
return true;
}
/*}}}*/
-bool DoMooApril(CommandLine &
CmdL)
/*{{{*/
+bool DoMooApril(CommandLine &
)
/*{{{*/
{
// by Christopher Allan Webber and proposed by Paul Tagliamonte
// in a "Community outreach": https://lists.debian.org/debian-devel/2013/04/msg00045.html
{
// by Christopher Allan Webber and proposed by Paul Tagliamonte
// in a "Community outreach": https://lists.debian.org/debian-devel/2013/04/msg00045.html