summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-10-13 07:22:53 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2014-10-13 07:22:53 +0200
commit94f730fd712f42d1df7996febba0eb39156c6107 (patch)
tree8d8210f90cf0a154371b7cc73e50da41cb178a3d /apt-pkg
parent844c95355601bdbc1b6c0b344533c3376b27aa8b (diff)
make --allow-insecure-repositories message an error
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.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/acquire-item.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 65c260f3a..3e4016ac6 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -1782,7 +1782,7 @@ void pkgAcqMetaSig::Failed(string Message,pkgAcquire::MethodConfig *Cnf)/*{{{*/
}
else
{
- _error->Warning("Use --allow-insecure-repositories to force the update");
+ _error->Error("Use --allow-insecure-repositories to force the update");
}
Item::Failed(Message,Cnf);
@@ -2161,7 +2161,7 @@ void pkgAcqMetaIndex::Failed(string Message,
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;
@@ -2298,7 +2298,7 @@ void pkgAcqMetaClearSig::Failed(string Message,pkgAcquire::MethodConfig *Cnf) /*
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;
}