CVS patchset: 2110
CVS date: 1998/05/06 21:07:04
- save/restore existing arch when done with buildarch
- copy the I18N table to the source header so i18n stuff works
- fixed multiple memory leaks in install code
+ - fixed bug in part recognition
2.4.108 -> 2.4.109:
- remove icons with --rmsource
int isPart(char *line)
{
+ char c;
struct PartRec *p = partList;
if (p->len == 0) {
initParts();
}
- while (p->token && strncmp(line, p->token, p->len)) {
+ while (p->token) {
+ if (! strncmp(line, p->token, p->len)) {
+ c = *(line + p->len);
+ if (c == '\0' || isspace(c)) {
+ break;
+ }
+ }
p++;
}
if (spec->readStack->reading) {
expandMacros(&spec->macros, spec->line);
}
-
+
rpmGetArchInfo(&arch, NULL);
rpmGetOsInfo(&os, NULL);
s = spec->line;
spec->readStack = rl;
spec->line[0] = '\0';
}
-
+
if (! spec->readStack->reading) {
spec->line[0] = '\0';
}