~udeshike/apt/apt-ishan

« back to all changes in this revision

Viewing changes to apt-pkg/contrib/strutl.h

  • Committer: David Kalnischkies
  • Date: 2009-12-23 11:38:19 UTC
  • mto: (1875.3.1 apt-squeeze)
  • mto: This revision was merged to the branch mainline in revision 1971.
  • Revision ID: kalnischkies@gmail.com-20091223113819-2k86cmu48d6uyf3w
merge Goswin Brederlow "support download of index files for different archs"
patch which includes the following big changes:
- Declare the unused [vendor] field in sources.list as option field,
  e.g. deb [arch=amd64,i386 lang=en_GB have=fun] http://example.org
- When fetching index files download them for all APT::Architectures
  (overrideable with the options field above)
- Allow all architectures of APT::Architectures to be in the Cache
- Add the architecture to status and progress informations
- Add b= (Binary architecture) to policy

This commit doesn't incude the "pin-hack" as the Group structure will take
care of this (and does it already to some extend).

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
bool Hex2Num(const string &Str,unsigned char *Num,unsigned int Length);
60
60
bool TokSplitString(char Tok,char *Input,char **List,
61
61
                    unsigned long ListMax);
 
62
vector<string> ExplodeString(string const &haystack, char const &split=',');
62
63
void ioprintf(ostream &out,const char *format,...) APT_FORMAT2;
63
64
void strprintf(string &out,const char *format,...) APT_FORMAT2;
64
65
char *safe_snprintf(char *Buffer,char *End,const char *Format,...) APT_FORMAT3;