1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
/*
* Data structure for representing http mirror information.
* Contains essentially the same information as Mirrors.masterlist,
* but only as much information as is necessary.
*/
struct mirror_t {
char *site;
char *country;
char *root;
};
/* This is the codename of the preferred distribution; the one that the
* current version of d-i is targeted at installing. */
#define PREFERRED_DISTRIBUTION "etch"
/* The two strings defined below must match the strings used in the
* templates (http and ftp) for these options. */
#define NO_MIRROR "don't use a network mirror"
#define MANUAL_ENTRY "enter information manually"
#define SUITE_LENGTH 32
/* Stack of suites */
static const char suites[][SUITE_LENGTH] = {
/* higher preference */
"oldstable",
"stable",
"testing",
"unstable"
/* lower preference */
};
#define DEBCONF_BASE "mirror/"
/*
* Allow for two more releases than the number of suites:
* - all suites
* - default release (if not in suites)
* - NULL list terminator
*/
#define MAXRELEASES (sizeof(suites)/SUITE_LENGTH + 2)
/*
* Data structure containing information on releases supported by a mirror
*/
struct release_t {
char *name;
char *suite;
int status;
};
/* Values for status field in release_t */
#define IS_VALID 0x1
#define IS_DEFAULT 0x2
#define GET_SUITE 0x4
#define GET_CODENAME 0x8
|