The breakage is just to big for now, so guard the change with
#ifndef APT_8_CLEANER_HEADERS and be nice to library users
26 files changed:
+#ifndef APT_8_CLEANER_HEADERS
+using std::min;
+#endif
+
class pkgDirStream;
class ExtractTar
class pkgDirStream;
class ExtractTar
#include <sys/time.h>
#include <unistd.h>
#include <sys/time.h>
#include <unistd.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::vector;
+using std::string;
+#endif
+
class pkgAcquireStatus;
/** \brief The core download scheduler. {{{
class pkgAcquireStatus;
/** \brief The core download scheduler. {{{
+#ifndef APT_8_CLEANER_HEADERS
+using std::ostream;
+#endif
+
class pkgAcquireStatus;
class pkgSimulate : public pkgPackageManager /*{{{*/
class pkgAcquireStatus;
class pkgSimulate : public pkgPackageManager /*{{{*/
#include<string>
#include<vector>
#include<string>
#include<vector>
+#ifndef APT_8_CLEANER_HEADERS
+using namespace std;
+#endif
+
class Configuration;
class OpProgress;
class Configuration;
class OpProgress;
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
// mount cdrom, DeviceName (e.g. /dev/sr0) is optional
bool MountCdrom(std::string Path, std::string DeviceName="");
bool UnmountCdrom(std::string Path);
// mount cdrom, DeviceName (e.g. /dev/sr0) is optional
bool MountCdrom(std::string Path, std::string DeviceName="");
bool UnmountCdrom(std::string Path);
#include <vector>
#include <iostream>
#include <vector>
#include <iostream>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
class Configuration
{
public:
class Configuration
{
public:
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
/* Define this for python-apt */
#define APT_HAS_GZIP 1
/* Define this for python-apt */
#define APT_HAS_GZIP 1
#include <vector>
#include <cstring>
#include <vector>
#include <cstring>
+
+#ifndef APT_8_CLEANER_HEADERS
+using std::min;
+using std::vector;
+#endif
+
// helper class that contains hash function name
// and hash
class HashString
// helper class that contains hash function name
// and hash
class HashString
#include <algorithm>
#include <stdint.h>
#include <algorithm>
#include <stdint.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+using std::min;
+#endif
+
template<int N>
class HashSumValue
{
template<int N>
class HashSumValue
{
#include "hashsum_template.h"
#include "hashsum_template.h"
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+using std::min;
+#endif
+
typedef HashSumValue<128> MD5SumValue;
class MD5Summation : public SummationImplementation
typedef HashSumValue<128> MD5SumValue;
class MD5Summation : public SummationImplementation
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
class FileFd;
/* This should be a 32 bit type, larger tyes use too much ram and smaller
class FileFd;
/* This should be a 32 bit type, larger tyes use too much ram and smaller
#include <string>
#include <sys/time.h>
#include <string>
#include <sys/time.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
class Configuration;
class OpProgress
{
class Configuration;
class OpProgress
{
#include "hashsum_template.h"
#include "hashsum_template.h"
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+using std::min;
+#endif
+
typedef HashSumValue<160> SHA1SumValue;
class SHA1Summation : public SummationImplementation
typedef HashSumValue<160> SHA1SumValue;
class SHA1Summation : public SummationImplementation
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+using std::vector;
+using std::ostream;
+#endif
+
bool UTF8ToCodeset(const char *codeset, const std::string &orig, std::string *dest);
char *_strstrip(char *String);
char *_strtabexpand(char *String,size_t Len);
bool UTF8ToCodeset(const char *codeset, const std::string &orig, std::string *dest);
char *_strstrip(char *String);
char *_strtabexpand(char *String,size_t Len);
#include <map>
#include <stdio.h>
#include <map>
#include <stdio.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::vector;
+using std::map;
+#endif
+
class pkgDPkgPMPrivate;
class pkgDPkgPM : public pkgPackageManager
class pkgDPkgPMPrivate;
class pkgDPkgPM : public pkgPackageManager
#include <string>
#include <stdio.h>
#include <string>
#include <stdio.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+using std::vector;
+#endif
+
class pkgTagSection;
class FileFd;
class indexRecords;
class pkgTagSection;
class FileFd;
class indexRecords;
#include <apt-pkg/pkgrecords.h>
#include <apt-pkg/macros.h>
#include <apt-pkg/pkgrecords.h>
#include <apt-pkg/macros.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
class pkgAcquire;
class pkgCacheGenerator;
class OpProgress;
class pkgAcquire;
class pkgCacheGenerator;
class OpProgress;
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/indexfile.h>
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/indexfile.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
class pkgAcquire;
class pkgCacheGenerator;
class OpProgress;
class pkgAcquire;
class pkgCacheGenerator;
class OpProgress;
#include <iostream>
#include <set>
#include <iostream>
#include <set>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
class pkgAcquire;
class pkgDepCache;
class pkgSourceList;
class pkgAcquire;
class pkgDepCache;
class pkgSourceList;
#ifndef PKGLIB_PKGCACHE_H
#define PKGLIB_PKGCACHE_H
#ifndef PKGLIB_PKGCACHE_H
#define PKGLIB_PKGCACHE_H
#include <string>
#include <time.h>
#include <apt-pkg/mmap.h>
#include <string>
#include <time.h>
#include <apt-pkg/mmap.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
class pkgVersioningSystem;
class pkgCache /*{{{*/
{
class pkgVersioningSystem;
class pkgCache /*{{{*/
{
#include <apt-pkg/versionmatch.h>
#include <vector>
#include <apt-pkg/versionmatch.h>
#include <vector>
+#ifndef APT_8_CLEANER_HEADERS
+using std::vector;
+#endif
+
class pkgPolicy : public pkgDepCache::Policy
{
protected:
class pkgPolicy : public pkgDepCache::Policy
{
protected:
#include <string>
#include <vector>
#include <string>
#include <vector>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+using std::vector;
+#endif
+
class pkgSourceList;
class pkgIndexFile;
class pkgSrcRecords
class pkgSourceList;
class pkgIndexFile;
class pkgSrcRecords
#include <apt-pkg/macros.h>
#include <apt-pkg/macros.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
// A class representing a particular software provider.
class __deprecated Vendor
{
// A class representing a particular software provider.
class __deprecated Vendor
{
#include <vector>
#include <apt-pkg/macros.h>
#include <vector>
#include <apt-pkg/macros.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+using std::vector;
+#endif
+
class Vendor;
class Configuration;
class Vendor;
class Configuration;
#include <apt-pkg/strutl.h>
#include <string>
#include <apt-pkg/strutl.h>
#include <string>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
class pkgVersioningSystem
{
public:
class pkgVersioningSystem
{
public:
#include <string>
#include <apt-pkg/pkgcache.h>
#include <string>
#include <apt-pkg/pkgcache.h>
+#ifndef APT_8_CLEANER_HEADERS
+using std::string;
+#endif
+
class pkgVersionMatch
{
// Version Matching
class pkgVersionMatch
{
// Version Matching