]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-method.cc
Fixed or handling bug
[apt.git] / apt-pkg / acquire-method.cc
index 55d2b75c773f88f8146606a262e18e7c8bbbea6a..770c68a90b5e62a9d7ca7fb98814dde28027f1f4 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-method.cc,v 1.22 1999/11/16 03:16:34 jgg Exp $
+// $Id: acquire-method.cc,v 1.24 2000/01/17 07:11:49 jgg Exp $
 /* ######################################################################
 
    Acquire Method
@@ -24,6 +24,7 @@
 #include <apt-pkg/strutl.h>
 #include <apt-pkg/fileutl.h>
 
+#include <stdarg.h>
 #include <stdio.h>
 #include <unistd.h>
                                                                        /*}}}*/
@@ -52,6 +53,9 @@ pkgAcqMethod::pkgAcqMethod(const char *Ver,unsigned long Flags)
 
    if ((Flags & NeedsCleanup) == NeedsCleanup)
       strcat(End,"Needs-Cleanup: true\n");
+
+   if ((Flags & Removable) == Removable)
+      strcat(End,"Removable: true\n");
    strcat(End,"\n");
 
    if (write(STDOUT_FILENO,S,strlen(S)) != (signed)strlen(S))