summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:39 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:39 +0000
commit813c8eea956b2dee1e7a4a8018a1e94880a2cfbf (patch)
tree133673154804728ea55fb8c2245d01e9dd429536 /apt-pkg/acquire-item.cc
parenteec898ad83d383f27b94f747245fe82fe11949b0 (diff)
Fixed segfault in re-install/upgrade condition
Author: jgg Date: 1999-04-28 22:48:44 GMT Fixed segfault in re-install/upgrade condition
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 35ae7d8b7..f2fd0b8b8 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acquire-item.cc,v 1.28 1999/04/20 05:59:29 jgg Exp $
+// $Id: acquire-item.cc,v 1.29 1999/04/28 22:48:44 jgg Exp $
/* ######################################################################
Acquire Item - Item to acquire
@@ -346,7 +346,12 @@ pkgAcqArchive::pkgAcqArchive(pkgAcquire *Owner,pkgSourceList *Sources,
StoreFilename(StoreFilename), Vf(Version.FileList())
{
Retries = _config->FindI("Acquire::Retries",0);
-
+
+ if (Version.Arch() == 0)
+ _error->Error("I wasn't able to locate file for the %s package. "
+ "This might mean you need to manually fix this package. (due to missing arch)",
+ Version.ParentPkg().Name());
+
// Generate the final file name as: package_version_arch.deb
StoreFilename = QuoteString(Version.ParentPkg().Name(),"_:") + '_' +
QuoteString(Version.VerStr(),"_:") + '_' +