55
#define APT_FIND_NEXT_FIELD \
56
for (End++; isspace(*End) != 0 && *End != 0; ++End) \
59
for (; isspace(*End) == 0 && *End != 0; ++End) \
60
/* find end of word */ ;
62
#define APT_WARNING_MALFORMED_LINE(FIELD) \
65
_error->Warning(_("Malformed override %s line %llu (%s)"),File.c_str(), \
55
71
// Find the package and zero..
58
74
for (; isspace(*End) == 0 && *End != 0; End++);
61
_error->Warning(_("Malformed override %s line %llu #1"),File.c_str(),
75
APT_WARNING_MALFORMED_LINE("pkgname");
67
79
// Find the priority
68
80
if (Source == false)
70
for (End++; isspace(*End) != 0 && *End != 0; End++);
72
for (; isspace(*End) == 0 && *End != 0; End++);
75
_error->Warning(_("Malformed override %s line %llu #2"),File.c_str(),
82
APT_WARNING_MALFORMED_LINE("priority");
80
83
Itm.Priority = Start;
83
88
// Find the Section
84
for (End++; isspace(*End) != 0 && *End != 0; End++);
86
for (; isspace(*End) == 0 && *End != 0; End++);
89
_error->Warning(_("Malformed override %s line %llu #3"),File.c_str(),
89
APT_WARNING_MALFORMED_LINE("section");
94
90
Itm.FieldOverride["Section"] = Start;
96
92
// Source override files only have the two columns