Not using this option, but using unsigned (and co) repositories will
cause these repositories to be ignored and data acquiring from them
fails, so this is very well in the realms of an error and helps in
making 'apt-get update' fail with a non-zero error code as well.
- _error->Warning("Use --allow-insecure-repositories to force the update");
+ _error->Error("Use --allow-insecure-repositories to force the update");
}
Item::Failed(Message,Cnf);
}
Item::Failed(Message,Cnf);
QueueIndexes(false);
} else {
// warn if the repository is unsinged
QueueIndexes(false);
} else {
// warn if the repository is unsinged
- _error->Warning("Use --allow-insecure-repositories to force the update");
+ _error->Error("Use --allow-insecure-repositories to force the update");
TransactionManager->AbortTransaction();
Status = StatError;
return;
TransactionManager->AbortTransaction();
Status = StatError;
return;
QueueIndexes(false);
} else {
// warn if the repository is unsigned
QueueIndexes(false);
} else {
// warn if the repository is unsigned
- _error->Warning("Use --allow-insecure-repositories to force the update");
+ _error->Error("Use --allow-insecure-repositories to force the update");
TransactionManager->AbortTransaction();
Status = StatError;
}
TransactionManager->AbortTransaction();
Status = StatError;
}