]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/deb/dpkgpm.{cc,h}:
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 3 Aug 2007 09:13:25 +0000 (11:13 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 3 Aug 2007 09:13:25 +0000 (11:13 +0200)
  - merged dpkg-log branch, this lets you specify a
    Dir::Log::Terminal file to log dpkg output to
    ABI break

1  2 
apt-pkg/init.cc
apt-pkg/init.h
apt-pkg/makefile
debian/changelog
debian/rules
doc/examples/configure-index
methods/makefile

diff --combined apt-pkg/init.cc
index 3ebd592c9eecdd9f5660c01ab165f6efdcf924b2,2617603ec140e7878186c5a24da89eac8ac8e0b0..0aff882b6f01433c0fe112a254a8b97616658823
@@@ -24,6 -24,8 +24,6 @@@ const char *pkgVersion = VERSION
  const char *pkgLibVersion = Stringfy(APT_PKG_MAJOR) "."
                              Stringfy(APT_PKG_MINOR) "." 
                              Stringfy(APT_PKG_RELEASE);
 -const char *pkgCPU = COMMON_CPU;
 -const char *pkgOS = COMMON_OS;
      
  // pkgInitConfig - Initialize the configuration class                 /*{{{*/
  // ---------------------------------------------------------------------
  bool pkgInitConfig(Configuration &Cnf)
  {
     // General APT things
 -   if (strcmp(COMMON_OS,"linux") == 0 ||
 -       strcmp(COMMON_OS,"unknown") == 0)
 -      Cnf.Set("APT::Architecture",COMMON_CPU);
 -   else
 -      Cnf.Set("APT::Architecture",COMMON_OS "-" COMMON_CPU);
 +   Cnf.Set("APT::Architecture", COMMON_ARCH);
     Cnf.Set("APT::Build-Essential::", "build-essential");
     Cnf.Set("APT::Install-Recommends", false);
     Cnf.Set("APT::Install-Suggests", false);
     Cnf.Set("Dir::Etc::parts","apt.conf.d");
     Cnf.Set("Dir::Etc::preferences","preferences");
     Cnf.Set("Dir::Bin::methods","/usr/lib/apt/methods");
+    // State   
+    Cnf.Set("Dir::Log","var/log/apt");
+    Cnf.Set("Dir::Log::Name","term.log");
     
     bool Res = true;
     
diff --combined apt-pkg/init.h
index b33d2db81435b7554c3c10f33fecc991b2a478a8,bc0e5503658c572c349052697a69d9a51c96250c..23e951effac738fd157ad06a232c78b57d4787f6
  
  // See the makefile
  #define APT_PKG_MAJOR 4
--#define APT_PKG_MINOR 4
++#define APT_PKG_MINOR 5
  #define APT_PKG_RELEASE 0
      
  extern const char *pkgVersion;
  extern const char *pkgLibVersion;
 -extern const char *pkgOS;
 -extern const char *pkgCPU;
  
  bool pkgInitConfig(Configuration &Cnf);
  bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys);
diff --combined apt-pkg/makefile
index df9954f67579b6f7125e584ef8f8bcc901544db1,8dd50b8c23c321236acd54fc368feae361ab9f77..b327dbf6489a4facdb8abe7ee23a1173dd85d5e3
@@@ -13,9 -13,9 +13,9 @@@ include ../buildlib/defaults.ma
  # methods/makefile - FIXME
  LIBRARY=apt-pkg
  LIBEXT=$(GLIBC_VER)$(LIBSTDCPP_VER)
--MAJOR=4.4
++MAJOR=4.5
  MINOR=0
- SLIBS=$(PTHREADLIB) $(INTLLIBS)
+ SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil
  APT_DOMAIN:=libapt-pkg$(MAJOR)
  
  # Source code for the contributed non-core things
diff --combined debian/changelog
index b9824f84a9e6920fda6726652913d09788b525c8,cb86ce5802a2a2d2adad851a58dc83317f42cac8..8c0bc2d0ed78d420451b1893e20921bf89b87269
@@@ -1,80 -1,8 +1,84 @@@
 -apt (0.7.4) UNRELEASED; urgency=low
 +apt (0.7.7) UNRELEASED; urgency=low
  
 -  * Fix a typo on 0.7.3 changelog entry about g++ (7.3 to 4.3)
 +  * apt-inst/contrib/extracttar.cc:
 +    - fix fd leak for zero size files (thanks to Bill Broadley for
 +      reporting this bug)
 +  * apt-pkg/acquire-item.cc:
 +    - remove zero size files on I-M-S hit
 +  * methods/https.cc:
 +    - only send LastModified if we actually have one
 +    - send range request with if-range 
 +    - delete failed downloads
++  * apt-pkg/deb/dpkgpm.{cc,h}:
++    - merged dpkg-log branch, this lets you specify a 
++      Dir::Log::Terminal file to log dpkg output to
++      ABI break
 +
 + -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 02 Aug 2007 11:55:54 +0200
 +
 +apt (0.7.6) unstable; urgency=low
 +
 +  * Applied patch from Aurelien Jarno <aurel32@debian.org> to fix wrong
 +    directory downloading on non-linux architectures (closes: #435597)
 +
 + -- Otavio Salvador <otavio@debian.org>  Wed, 01 Aug 2007 19:49:51 -0300
 +
 +apt (0.7.5) unstable; urgency=low
 +
 +  [ Otavio Salvador ]
 +  * Applied patch from Guillem Jover <guillem@debian.org> to use
 +    dpkg-architecture to get the host architecture (closes: #407187)
 +  * Applied patch from Guillem Jover <guillem@debian.org> to add
 +    support to add lzma support (closes: #408201)
  
 - -- Otavio Salvador <otavio@ossystems.com.br>  Mon, 02 Jul 2007 13:27:54 -0300
 +  [ Michael Vogt ]
 +  * apt-pkg/depcache.cc:
 +    - support a list of sections for:
 +      APT::Install-Recommends-Sections
 +      APT::Never-MarkAuto-Sections
 +  * methods/makefile:
 +    - install lzma symlink method (for full lzma support)
 +  * debian/control:
 +    - suggest "lzma"
 +
 + -- Otavio Salvador <otavio@ossystems.com.br>  Wed, 25 Jul 2007 20:16:46 -0300
 +
 +apt (0.7.4) unstable; urgency=low
 +
 +  [ Michael Vogt ]
 +  * cmdline/apt-get.cc:
 +    - fix in the task-install code regexp (thanks to Adam Conrad and
 +      Colin Watson)
 +    - support task removal too: apt-get remove taskname^
 +      (thanks to Matt Zimmerman reporting this problem)
 +
 +  [ Otavio Salvador ]
 +  * Fix a typo on 0.7.3 changelog entry about g++ (7.3 to 4.3)
 +  * Fix compilation warnings:
 +    - apt-pkg/contrib/configuration.cc: wrong argument type;
 +    - apt-pkg/deb/dpkgpm.cc: wrong signess;
 +    - apt-pkg-acquire-item.cc: wrong signess and orderned initializers;
 +    - methods/https.cc:
 +      - type conversion;
 +      - unused variable;
 +      - changed SetupProxy() method to void;
 +  * Simplified HttpMethod::Fetch on http.cc removing Tail variable;
 +  * Fix pipeline handling on http.cc (closes: #413324)
 +  * Fix building to properly support binNMUs. Thanks to Daniel Schepler
 +    <schepler@math.unipd.it> by the patch (closes: #359634)
 +  * Fix example for Install-{Recommends,Suggests} options on
 +    configure-index example file. Thanks to Peter Eisentraut
 +    <peter_e@gmx.net> by the patch (closes: #432223)
 +
 +  [ Christian Perrier ]
 +  * Basque translation update. Closes: ##423766
 +  * Unfuzzy formerly complete translations
 +  * French translation update
 +  * Re-generate PO(T) files
 +  * Spanish translation update
 +  * Swedish translation update
 +
 + -- Otavio Salvador <otavio@debian.org>  Tue, 24 Jul 2007 09:55:50 -0300
  
  apt (0.7.3) unstable; urgency=low
  
@@@ -88,9 -16,9 +92,9 @@@
      - fix InstallTask code when a pkgRecord ends 
        with a single '\n' (thanks to Soren Hansen for reporting)
    * merged from Christian Perrier:
 -      * vi.po: completed to 532t, again. Closes: #429899
 -      * gl.po: completed to 532t. Closes: #429506
 -      * vi.po: completed to 532t. Closes: #428672
 +        * vi.po: completed to 532t, again. Closes: #429899
 +        * gl.po: completed to 532t. Closes: #429506
 +        * vi.po: completed to 532t. Closes: #428672
          * Update all PO and the POT. Gives 514t14f4u for formerly
            complete translations
          * fr.po: completed to 532t
@@@ -2613,3 -2541,4 +2617,3 @@@ apt (0.0.1) unstable; urgency=lo
    * Initial Release.
  
   -- Scott K. Ellis <scott@debian.org>  Tue, 31 Mar 1998 12:49:28 -0500
 -
diff --combined debian/rules
index 473821f16c2c731c7c48fd68de97f19373428b6e,3e8b2d35aedf6a60bae66bc0e2c31296496f56e0..b3222f3b4c1000694b7d5515cff15e13ebfca8ea
@@@ -38,7 -38,7 +38,7 @@@ build
  
  PKG=apt
  DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
 -APT_DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p' -e 's/\+.*$$//')
 +APT_DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p' | sed -e 's/\+.*$$//')
  APT_CONFVER=$(shell sed -n -e 's/^AC_DEFINE_UNQUOTED(VERSION,"\(.*\)")/\1/p' configure.in)
  APT_CVSTAG=$(shell echo "$(APT_DEBVER)" | sed -e 's/^/v/' -e 's/\./_/g')
  
@@@ -209,6 -209,7 +209,7 @@@ apt: build debian/shlibs.loca
        cp -r $(BLD)/locale debian/$@/usr/share/
  
        cp debian/bugscript debian/$@/usr/share/bug/apt/script
+       cp debian/apt.logrotate debian/$@/etc/logrotate.d/apt
  
        cp share/debian-archive.gpg debian/$@/usr/share/$@
        cp debian/apt.conf.autoremove debian/$@/etc/apt/apt.conf.d/01autoremove
index ab3657a586e595feef45864d050013bee62466dc,0bf407a4d8cd7fe1d06016c7cc5099edfdf7106d..f4a196b680ababbd2e56f8ab7b51a9365676d5b5
@@@ -97,11 -97,11 +97,11 @@@ AP
  
    // consider Recommends, Suggests as important dependencies that should
    // be installed by default
 -  APT::Install-Recommends "false";
 -  APT::Install-Suggests "false";
 +  Install-Recommends "false";
 +  Install-Suggests "false";
  
    // consider dependencies of packages in this section manual
 -  Never-MarkAuto-Section "metapackages";
 +  Never-MarkAuto-Sections {"metapackages"; "universe/metapackages"; };
  
    // Write progress messages on this fd (for stuff like base-config)
    Status-Fd "-1";
@@@ -227,6 -227,11 +227,11 @@@ Dir "/
       apt-get "/usr/bin/apt-get";
       apt-cache "/usr/bin/apt-cache";
    };
+   // Location of the logfile
+   Log "var/log/apt" {
+       Name "term.log";
+   };
  };
  
  // Things that effect the APT dselect method
diff --combined methods/makefile
index f0fd4e414c0da291c7973ac8f1c103a85fc7ff5f,f178cbbeac3344c796a1be5b1cc44e9771a112f6..e47539dbb3994aa14f25dc4cf240169a47fe6d62
@@@ -7,7 -7,7 +7,7 @@@ include ../buildlib/defaults.ma
  BIN := $(BIN)/methods
  
  # FIXME..
--LIB_APT_PKG_MAJOR = 4.4
++LIB_APT_PKG_MAJOR = 4.5
  APT_DOMAIN := libapt-pkg$(LIB_APT_PKG_MAJOR)
  
  # The file method
@@@ -80,9 -80,9 +80,9 @@@ LIB_MAKES = apt-pkg/makefil
  SOURCE = rsh.cc
  include $(PROGRAM_H)
  
 -# SSH and vzip2 method symlink
 -binary: $(BIN)/ssh $(BIN)/bzip2
 -veryclean: clean-$(BIN)/ssh clean-$(BIN)/bzip2
 +# SSH and bzip2 method symlink
 +binary: $(BIN)/ssh $(BIN)/bzip2 $(BIN)/lzma
 +veryclean: clean-$(BIN)/ssh clean-$(BIN)/bzip2 clean-$(BIN)/lzma
  $(BIN)/ssh:
        echo "Installing ssh method link"
        ln -fs rsh $(BIN)/ssh
@@@ -92,10 -92,5 +92,10 @@@ clean-$(BIN)/ssh
  $(BIN)/bzip2:
        echo "Installing bzip2 method link"
        ln -fs gzip $(BIN)/bzip2
 +$(BIN)/lzma:
 +      echo "Installing lzma method link"
 +      ln -fs gzip $(BIN)/lzma
  clean-$(BIN)/bzip2:
        -rm $(BIN)/bzip2
 +clean-$(BIN)/lzma:
 +      -rm $(BIN)/lzma