apt.git
12 years agoRegenerate auto*foo goop
Panu Matilainen [Mon, 22 Dec 2008 20:37:21 +0000 (22:37 +0200)]
Regenerate auto*foo goop

12 years agoMore rpm version compatibility fiddling in raptheader
Panu Matilainen [Mon, 22 Dec 2008 20:33:16 +0000 (22:33 +0200)]
More rpm version compatibility fiddling in raptheader
- attempt to deal with old rpm versions where you dont really know if data
  was alloced or not except by "knowing", where types mismatch between
  headerGetEntry() and headerFreeData(), where headerGetRawEntry hasn't
  been declared but used anyway since 4.0 or whatever etc... SIGH

12 years agoFix non-array string case for old-style rpm header getting
Panu Matilainen [Mon, 22 Dec 2008 18:36:31 +0000 (20:36 +0200)]
Fix non-array string case for old-style rpm header getting

12 years agoMove rpmdb/ts iterator compat wrapper to rapttypes.h
Panu Matilainen [Sun, 14 Dec 2008 14:13:41 +0000 (16:13 +0200)]
Move rpmdb/ts iterator compat wrapper to rapttypes.h
- rename rpmxxInitIterator -> raptInitIterator (too generic but shrug)
- use consistently everywhere

12 years agoNon-array cases of getTag() don't need rpm-version specific implementation
Panu Matilainen [Sun, 14 Dec 2008 12:31:32 +0000 (14:31 +0200)]
Non-array cases of getTag() don't need rpm-version specific implementation

12 years agoheaderGet() flag fiddles
Panu Matilainen [Sun, 14 Dec 2008 12:17:44 +0000 (14:17 +0200)]
headerGet() flag fiddles
- use MINMEM to avoid extra copy from header if possible, we're making
  a separate copy here anyway
- use HEADERGET_RAW if requested

12 years agoEliminate use of headerGetEntry() in rpmhandler
Panu Matilainen [Sat, 13 Dec 2008 16:52:32 +0000 (18:52 +0200)]
Eliminate use of headerGetEntry() in rpmhandler
- use raptHeader() methods instead, makes the whole thing a whole lot
  nicer and saner
- dont use rpmfi even if available, while the interface is nice, rpmfi
  drags in tonne of data we have no use for and slows things down
  considerably, we only care about file names

12 years agoAdd beginnings of C++ level abstraction for rpm header
Panu Matilainen [Sat, 13 Dec 2008 16:47:51 +0000 (18:47 +0200)]
Add beginnings of C++ level abstraction for rpm header
- bury rpm version differences one level deeper and let rest of apt
  remain ignorant what kludgery is needed to pull out given type of
  data out of headers
- converts the "raw" C arrays and strings to C++ vectors and such for nicer
  handling

12 years agoUse helpers from xmlutil.h instead of copy-paste version
Panu Matilainen [Mon, 22 Dec 2008 18:37:46 +0000 (20:37 +0200)]
Use helpers from xmlutil.h instead of copy-paste version

12 years agoDefault to "/" as rpm ts root if not set
Panu Matilainen [Wed, 17 Dec 2008 10:14:41 +0000 (12:14 +0200)]
Default to "/" as rpm ts root if not set

12 years agoAdd snapshot rule to maintainer makefile
Panu Matilainen [Tue, 16 Dec 2008 15:41:00 +0000 (17:41 +0200)]
Add snapshot rule to maintainer makefile

12 years agoHandle varying primary etc filenames in repomd repositories (rhbz#469805)
Panu Matilainen [Tue, 16 Dec 2008 15:04:16 +0000 (17:04 +0200)]
Handle varying primary etc filenames in repomd repositories (rhbz#469805)
- treat repomd.xml as repomd main index (and release) file
- pass repomd object to handler constructors so we have a chance of
  finding the rest of the files

12 years agoSplit repomd.xml handling out of repomd repository class
Panu Matilainen [Tue, 16 Dec 2008 14:42:26 +0000 (16:42 +0200)]
Split repomd.xml handling out of repomd repository class
- apt's repository class isn't that helpful when it comes to various
  things and it's not available everywhere where needed, repomd needs
  to locate its various files in several places so splitting to avoid
  having to duplicate parsing code all over the place
- repomd class knows whether sqlite is available and usable, add
  method for creating suitable handler automatically there

12 years agoMake genbasedir use --cachedir for gensrclist too (Dag Wieers)
Panu Matilainen [Sat, 13 Dec 2008 09:42:56 +0000 (11:42 +0200)]
Make genbasedir use --cachedir for gensrclist too (Dag Wieers)

12 years agoChange variable name to appease recent autoconf
Panu Matilainen [Sun, 16 Nov 2008 10:53:35 +0000 (12:53 +0200)]
Change variable name to appease recent autoconf
- recent autoconf requires cache variable names to contain _cv_ in the
  name, avoid "suspicious cache-id, must contain _cv_ to be cached"
  warnings

12 years agogenutil.h (endswith, selectRPMs): new aux file for genpkglist and gensrclist
Alexey Tourbin [Sun, 16 Nov 2008 06:05:12 +0000 (09:05 +0300)]
genutil.h (endswith, selectRPMs): new aux file for genpkglist and gensrclist

12 years agogenpkglist.cc, gensrclist.cc: fixed error messages
Alexey Tourbin [Sun, 16 Nov 2008 03:50:02 +0000 (06:50 +0300)]
genpkglist.cc, gensrclist.cc: fixed error messages

12 years agogenpkglist.cc (usefulFile): rewritten for clarity
Alexey Tourbin [Sun, 16 Nov 2008 03:23:49 +0000 (06:23 +0300)]
genpkglist.cc (usefulFile): rewritten for clarity

12 years agoconfigure.ac: invoke AC_PROG_LIBTOOL after AC_PROG_CXX
Alexey Tourbin [Sun, 16 Nov 2008 00:58:18 +0000 (03:58 +0300)]
configure.ac: invoke AC_PROG_LIBTOOL after AC_PROG_CXX

If AC_PROG_LIBTOOL is placed before AC_PROG_CXX, it expands its own
AC_PROG_CXX first.  The next AC_PROG_CXX in configure.ac then simply
duplicates the code.  This change makes the resulting configure script
some 1500 lines smaller.

Patch by Dmitry V. Levin <ldv@altlinux.org>.

12 years agoprogress.cc (OpProgress::CheckChange): optimize redundant gettimeofday() calls
Alexey Tourbin [Sat, 15 Nov 2008 18:05:20 +0000 (21:05 +0300)]
progress.cc (OpProgress::CheckChange): optimize redundant gettimeofday() calls

Note that percent check goes before interval check.  So, with LastPercnet
udpated properly, total number of gettimeofday() calls (per progress) is
now bound by the value of 100 (or maybe 101).

Backported from debian's apt-0.7.18.

12 years agogenpkglist: RPMTAG_FILEFLAGS should not be copied into header list
Alexey Tourbin [Sat, 15 Nov 2008 04:28:39 +0000 (07:28 +0300)]
genpkglist: RPMTAG_FILEFLAGS should not be copied into header list

Note that fileflags correspond to filenames.  And by default (which is
without --bloat option), filenames are stripped with special "usefulFile"
algorithm.  Since fileflags are of no use in apt, I drop them completely.

12 years agoapt-0.5.15lorg2-alt-pkgCache-PrvIterator.patch
Alexey Tourbin [Sat, 15 Nov 2008 03:38:12 +0000 (06:38 +0300)]
apt-0.5.15lorg2-alt-pkgCache-PrvIterator.patch

2006-05-23  Sir Raorn <raorn@altlinux.org>

* apt-pkg/cacheiterators.h(pkgCache::PrvIterator): Add default
constructor, required for aptitude 0.4.1

12 years agoapt-shell: Fix segfault on no-arg command line (ALT#5401).
Alexey Tourbin [Sat, 15 Nov 2008 02:53:21 +0000 (05:53 +0300)]
apt-shell: Fix segfault on no-arg command line (ALT#5401).

Reported by Dmitry Alexeyev <dmi_a@qnx.org.ru>:
https://bugzilla.altlinux.org/show_bug.cgi?id=5401

Diagnosed by Anton Farygin <rider@altlinux.ru>.
Initial patch by Anton Farygin <rider@altlinux.ru>.
First committed by Sergey Bolshakov <sbolshakov@altlinux.ru>.
Reviewed and updated by Alexey Tourbin <at@altlinux.ru>.

(before this change)
$ ./cmdline/apt-shell
Reading Package Lists... Done
Building Dependency Tree... Done
Welcome to the APT shell. Type "help" for more information.
apt> -
zsh: segmentation fault  ./cmdline/apt-shell

(after this change)
$ ./cmdline/apt-shell
Reading Package Lists... Done
Building Dependency Tree... Done
Welcome to the APT shell. Type "help" for more information.
apt> -
E: Invalid operation (null)
apt>

12 years agoapt-0.5.15cnc5-alt-execrpm-cmd.patch
Alexey Tourbin [Sat, 15 Nov 2008 01:36:57 +0000 (04:36 +0300)]
apt-0.5.15cnc5-alt-execrpm-cmd.patch

2004-01-16  Dmitry V. Levin <ldv@altlinux.org>

* apt-pkg/rpm/rpmpm.cc(pkgRPMPM::ExecRPM):
Report actual options being passed to rpm.

12 years agoChange type of pkgCache::Package.ID to 'unsigned int'.
Alex V. Myltsev [Tue, 26 Aug 2008 19:46:15 +0000 (23:46 +0400)]
Change type of pkgCache::Package.ID to 'unsigned int'.

'unsigned short' breaks when there are more than 65535 packages.

Note that, due to padding in the data structure, this change
is basically backward compatible.

Reported by Alex V. Myltsev <avm@altlinux.ru>:
https://bugzilla.altlinux.org/show_bug.cgi?id=16900

Patch by Led <led@altlinux.ru>.
Reviewed by Alexey Tourbin <at@altlinux.ru>.

Also proposed by Christiaan Welvaart <cjw@daneel.dyndns.org>:
http://lists.laiskiainen.org/pipermail/apt-rpm-laiskiainen.org/2008-November/000875.html

12 years agoChange flExtension() to return the empty string if there is no extension (ALT#15909).
Alex V. Myltsev [Wed, 27 Aug 2008 17:51:47 +0000 (21:51 +0400)]
Change flExtension() to return the empty string if there is no extension (ALT#15909).

Diagnosed by Alexey I. Froloff <raorn@altlinux.ru>:
https://bugzilla.altlinux.org/show_bug.cgi?id=15909

Earlier reported by Ildar Mulyukov <ildar@altlinux.ru>:
https://bugzilla.altlinux.org/show_bug.cgi?id=14699

Patch by Alex V. Myltsev <avm@altlinux.ru>.
Reviewed by Alexey Tourbin <at@altlinux.ru>.

(before this change)
$ mkdir ./rpm
$ ./cmdline/apt-get --dry-run install rpm
error: read failed: Is a directory (21)
Reading Package Lists... Error!
E: Failed reading file rpm
E: Problem opening /var/lib/apt/lists/_ALT_Sisyphus_x86%5f64_base_pkglist.classic
E: The package lists or status file could not be parsed or opened.
$

(after this change)
$ mkdir ./rpm
mkdir: cannot create directory `./rpm': File exists
$ ./cmdline/apt-get --dry-run install rpm
Reading Package Lists... Done
Building Dependency Tree... Done
rpm is already the newest version.
0 upgraded, 0 newly installed, 0 removed and 2 not upgraded.
$

12 years agoapt-get, apt-shell: Protect VerTag by pointing it to OrigS, not to S (closes ALT...
Alex V. Myltsev [Wed, 27 Aug 2008 17:41:32 +0000 (21:41 +0400)]
apt-get, apt-shell: Protect VerTag by pointing it to OrigS, not to S (closes ALT#16311).

Diagnosed by Alexey I. Froloff <raorn@altlinux.ru>:
Possible name and version overlap while trying to install "file" with version specification
https://bugzilla.altlinux.org/show_bug.cgi?id=16311

Patch by Alex V. Myltsev <avm@altlinux.ru>.
Reviewed by Alexey Tourbin <at@altlinux.ru>.

(before this change)
$ ./cmdline/apt-get install /bin/rm=0
Reading Package Lists... Done
Building Dependency Tree... Done
Selecting coreutils for '/bin/rm=0'
E: Version ='s' for 'coreutils' was not found
$

This indicates a memory problem:

S: "/bin/rm=0"
            ^- VerTag first points here
S: "coreutils"
            ^- as S is changed, VerTag still points there

(after this cnange)
$ ./cmdline/apt-get install /bin/rm=0
Reading Package Lists... Done
Building Dependency Tree... Done
Selecting coreutils for '/bin/rm=0'
E: Version ='0' for 'coreutils' was not found
$

12 years agorpmhandler.h: replaced remaining rpmTag with raptTag
Alexey Tourbin [Fri, 14 Nov 2008 21:42:12 +0000 (00:42 +0300)]
rpmhandler.h: replaced remaining rpmTag with raptTag

Fixes gcc-4.3 errors:
rpm/rpmhandler.cc:299: error: prototype for ‘off_t RPMHdrHandler::GetITag(raptTag)’ does not match any in class ‘RPMHdrHandler’
rpm/rpmhandler.h:124: error: candidate is: off_t RPMHdrHandler::GetITag(rpmTag)
rpm/rpmhandler.cc:312: error: prototype for ‘std::string RPMHdrHandler::GetSTag(raptTag)’ does not match any in class ‘RPMHdrHandler’
rpm/rpmhandler.h:123: error: candidate is: std::string RPMHdrHandler::GetSTag(rpmTag)

Now I can compile apt as is.

12 years agoKill off remaining [u]int_32 uses by further raptFoo type fluff
Panu Matilainen [Tue, 11 Nov 2008 08:23:59 +0000 (10:23 +0200)]
Kill off remaining [u]int_32 uses by further raptFoo type fluff

12 years agoLeftover int_32 use for tag data count
Panu Matilainen [Tue, 11 Nov 2008 08:15:40 +0000 (10:15 +0200)]
Leftover int_32 use for tag data count

12 years agoRemove leftover ParseDepends() declaration
Panu Matilainen [Tue, 11 Nov 2008 08:13:02 +0000 (10:13 +0200)]
Remove leftover ParseDepends() declaration
- the implementation has been gone since 2006 repomd merge, duh..

12 years agoFurther rpm version isolation through typemaps
Panu Matilainen [Tue, 11 Nov 2008 08:08:48 +0000 (10:08 +0200)]
Further rpm version isolation through typemaps
- use raptTag instead of rpmTag everywhere or so

12 years agoUse raptDepFlags for rpm dep flags instead of int_32
Panu Matilainen [Tue, 11 Nov 2008 08:02:50 +0000 (10:02 +0200)]
Use raptDepFlags for rpm dep flags instead of int_32

12 years agoOutput streams fix from Vladislav Bogdanov
Panu Matilainen [Tue, 11 Nov 2008 07:33:23 +0000 (09:33 +0200)]
Output streams fix from Vladislav Bogdanov

c0out, c1out and c2out are declared static in 'cmdline.h' which is included
both in 'cmdline.cc' and f.e. 'apt-shell.cc'.
So, each source file has its own instances of streams.
cout duplication to that streams is done in apt-shell.cc, but functions in
cmdline.cc use another streams, so output is partially lost
(F.e. 'list' command in apt-shell dosn't show anything).

12 years agoScreen width detection fix from Vladislav Bogdanov
Panu Matilainen [Tue, 11 Nov 2008 07:32:12 +0000 (09:32 +0200)]
Screen width detection fix from Vladislav Bogdanov

12 years agoMerge branch 'for-panu'
Panu Matilainen [Tue, 11 Nov 2008 07:25:23 +0000 (09:25 +0200)]
Merge branch 'for-panu'

* for-panu:
  multiple vendor fingerprints, based on apt-0.5.15cnc6-alt-vendor.patch
  apt-0.5.15cnc6-alt-pkgcachegen.patch
  rpmpm.cc (pkgRPMLibPM::Process): commented out unused code which breaks gcc-4.1
  rpmhandler.cc (RPMHdrHandler::PRCO): fix for rpm-4.0
  aptcallback.cc: RPMCALLBACK_REPACKAGE* available only in rpm >= 4.1

12 years agoRemove all interface/implementation #pragmas
Panu Matilainen [Mon, 10 Nov 2008 16:48:16 +0000 (18:48 +0200)]
Remove all interface/implementation #pragmas
- hardly useful, eliminated from debian apt too

12 years agomultiple vendor fingerprints, based on apt-0.5.15cnc6-alt-vendor.patch
Alexey Tourbin [Tue, 2 Sep 2008 12:14:53 +0000 (16:14 +0400)]
multiple vendor fingerprints, based on apt-0.5.15cnc6-alt-vendor.patch

* Fri Jul 08 2005 Kachalov Anton <mouse@altlinux.ru> 0.5.15cnc6-alt15
- apt-pkg/sourcelist.cc:
  Added support for multiple fingerprints for the same vendor name

This change consists of two parts.

1) Essential part: in pkgRepository and pkgSourceList::Vendor,
"string FingerPrint" has been changed to "vector<string> FingerPrintList".
This change is a prerequisite for multiple fingerprints implementation.

2) Config file part (ifdeffed with "if 1").  We check if the
Vendor.Group of a current vendor matches Vendor.ID of any previous
vendor.  Current fingerprint is then added to the previous vendor.

Example:

simple-key "alt" {
Fingerprint "62A18AD809AD1DDA342978242913F6A180EF7625";
Name "ALT Security Team <security@altlinux.org>";
}
simple-key "incominger" {
Group "alt";
Fingerprint "49B01E70C64124E6742EAE7195C584D5AE4AE412";
Name "R. E. Gnimocni <incominger@altlinux.org>";
}

Now, with "[alt]" vendor ID in sources.list, both "alt" and "incominger"
fingerprints will be tested.

NOTE.  This change makes it possible to IMPLICITLY extend the list
of vendor fingerprints (e.g. by placing another file under vendor.list.d).
Perhaps a better approach for config file part would be to enumerate
vendor fingerprints explicitly (possibly using an under-implemented
"group-key" section).

12 years agoapt-0.5.15cnc6-alt-pkgcachegen.patch
Alexey Tourbin [Sat, 30 Aug 2008 12:11:08 +0000 (16:11 +0400)]
apt-0.5.15cnc6-alt-pkgcachegen.patch

2004-05-15  Dmitry V. Levin <ldv@altlinux.org>

* apt-pkg/pkgcachegen.cc(pkgMakeStatusCache):
Remove old sources cache file before creating new one.
Fix error handling.

12 years agorpmpm.cc (pkgRPMLibPM::Process): commented out unused code which breaks gcc-4.1
Alexey Tourbin [Tue, 29 Jul 2008 16:05:42 +0000 (20:05 +0400)]
rpmpm.cc (pkgRPMLibPM::Process): commented out unused code which breaks gcc-4.1

rpm/rpmpm.cc:932: error: jump to label ‘exit’
rpm/rpmpm.cc:791: error:   from here
rpm/rpmpm.cc:846: error:   crosses initialization of ‘int repackage’
rpm/rpmpm.cc:843: error:   crosses initialization of ‘int packagesTotal’

12 years agorpmhandler.cc (RPMHdrHandler::PRCO): fix for rpm-4.0
Alexey Tourbin [Tue, 29 Jul 2008 01:12:40 +0000 (05:12 +0400)]
rpmhandler.cc (RPMHdrHandler::PRCO): fix for rpm-4.0

12 years agoaptcallback.cc: RPMCALLBACK_REPACKAGE* available only in rpm >= 4.1
Alexey Tourbin [Tue, 29 Jul 2008 01:10:16 +0000 (05:10 +0400)]
aptcallback.cc: RPMCALLBACK_REPACKAGE* available only in rpm >= 4.1

12 years agorpm.org head has rpm_loff_t as callback size args
Panu Matilainen [Fri, 20 Jun 2008 08:26:35 +0000 (11:26 +0300)]
rpm.org head has rpm_loff_t as callback size args

12 years agoCouple of leftover rpm_off_t uses
Panu Matilainen [Mon, 9 Jun 2008 05:58:56 +0000 (08:58 +0300)]
Couple of leftover rpm_off_t uses

12 years agoNeed a separate type for callback size
Panu Matilainen [Mon, 9 Jun 2008 05:58:21 +0000 (08:58 +0300)]
Need a separate type for callback size

12 years agoUse raptFoo types in genpkg + srclist
Panu Matilainen [Sun, 8 Jun 2008 06:43:55 +0000 (09:43 +0300)]
Use raptFoo types in genpkg + srclist

12 years agoDeal with signal checking a bit more sanely
Panu Matilainen [Sun, 8 Jun 2008 06:28:23 +0000 (09:28 +0300)]
Deal with signal checking a bit more sanely

12 years agoMore compat fluff for rpm version differences
Panu Matilainen [Sun, 8 Jun 2008 06:28:03 +0000 (09:28 +0300)]
More compat fluff for rpm version differences

12 years agoUse raptFoo types as necessary in rpmhandler & friends
Panu Matilainen [Sun, 8 Jun 2008 06:16:24 +0000 (09:16 +0300)]
Use raptFoo types as necessary in rpmhandler & friends

12 years agoAdd new private header to hide differences in rpm types from apt
Panu Matilainen [Sun, 8 Jun 2008 06:15:26 +0000 (09:15 +0300)]
Add new private header to hide differences in rpm types from apt
- while C doesn't mind converting enums to ints etc automatically, C++
  gets very upset, use raptFoo types to hide these

12 years agoUse headerFormat() instead of headerSprintf() if it exists
Panu Matilainen [Sun, 8 Jun 2008 05:36:34 +0000 (08:36 +0300)]
Use headerFormat() instead of headerSprintf() if it exists

12 years agoYet more rpm compatibility checks in configure
Panu Matilainen [Sun, 8 Jun 2008 05:34:38 +0000 (08:34 +0300)]
Yet more rpm compatibility checks in configure
- check for headerFormat() and rpmtd.h header

12 years agoAdd Portugese Portugal translation (Paulo Trezentos)
Panu Matilainen [Fri, 20 Jun 2008 08:29:56 +0000 (11:29 +0300)]
Add Portugese Portugal translation (Paulo Trezentos)

13 years agoCheck for rpmtypes.h presence instead of grepping header
Panu Matilainen [Thu, 21 Feb 2008 13:40:29 +0000 (15:40 +0200)]
Check for rpmtypes.h presence instead of grepping header
Slightly closer to building with rpm.org head..

13 years agoFix infinite loop in pkgAcquire::UriIterator (Bernhard Rosenkränzer)
Panu Matilainen [Thu, 21 Feb 2008 13:32:17 +0000 (15:32 +0200)]
Fix infinite loop in pkgAcquire::UriIterator (Bernhard Rosenkränzer)

13 years agoRemove bogus semicolons in inline method definitions (Bernhard Rosenkränzer)
Panu Matilainen [Thu, 21 Feb 2008 13:29:37 +0000 (15:29 +0200)]
Remove bogus semicolons in inline method definitions (Bernhard Rosenkränzer)

13 years agoAdd missing include for gcc 4.3
Panu Matilainen [Mon, 11 Feb 2008 17:35:15 +0000 (19:35 +0200)]
Add missing include for gcc 4.3

13 years agoSilly typo in apt-shell
Panu Matilainen [Tue, 15 Jan 2008 18:54:33 +0000 (20:54 +0200)]
Silly typo in apt-shell

13 years agoFix typo/thinko in HAVE_RPMEVR checks
Panu Matilainen [Mon, 14 Jan 2008 12:30:25 +0000 (14:30 +0200)]
Fix typo/thinko in HAVE_RPMEVR checks

13 years agoBrown paperbag 0.5.15lorg3.94a release
Panu Matilainen [Sat, 12 Jan 2008 10:56:26 +0000 (12:56 +0200)]
Brown paperbag 0.5.15lorg3.94a release

13 years ago..and one test program include too, sigh
Panu Matilainen [Sat, 12 Jan 2008 09:49:18 +0000 (11:49 +0200)]
..and one test program include too, sigh

13 years agoOops, forgot to adjust tools/ for rpmhandler going private
Panu Matilainen [Fri, 11 Jan 2008 21:00:35 +0000 (23:00 +0200)]
Oops, forgot to adjust tools/ for rpmhandler going private

13 years agoPreparing for 0.5.15lorg3.94 origin
Panu Matilainen [Fri, 11 Jan 2008 19:26:06 +0000 (21:26 +0200)]
Preparing for 0.5.15lorg3.94

13 years agoMove ChangeLog creation to Makefile.maint
Panu Matilainen [Fri, 11 Jan 2008 19:24:37 +0000 (21:24 +0200)]
Move ChangeLog creation to Makefile.maint

13 years agoMake autoupdates a bit more quiet (Pierre Ossman)
Panu Matilainen [Fri, 11 Jan 2008 18:39:09 +0000 (20:39 +0200)]
Make autoupdates a bit more quiet (Pierre Ossman)

13 years agoCheck for and work around newer rpm5.org versions hiding RPMSENSE_* tags.
Panu Matilainen [Fri, 11 Jan 2008 18:32:53 +0000 (20:32 +0200)]
Check for and work around newer rpm5.org versions hiding RPMSENSE_* tags.
Apt needs to convert rpm dependency presentation to its own abstaction...

13 years agoFix bool vs int type mismatch causing alignment traps on ARM.
Panu Matilainen [Fri, 11 Jan 2008 17:55:20 +0000 (19:55 +0200)]
Fix bool vs int type mismatch causing alignment traps on ARM.
Besides it was plain wrong to begin with...

13 years agoMD5Summation needs alignment on ARM (Ryan Burns / MontaVista)
Panu Matilainen [Fri, 11 Jan 2008 05:46:30 +0000 (07:46 +0200)]
MD5Summation needs alignment on ARM (Ryan Burns / MontaVista)

13 years agoRemove unnecessary rpm/misc.h include and configure checks for it.
Panu Matilainen [Tue, 8 Jan 2008 21:14:34 +0000 (23:14 +0200)]
Remove unnecessary rpm/misc.h include and configure checks for it.

13 years agoPreliminaries for quiet option in progress class
Panu Matilainen [Tue, 8 Jan 2008 21:11:05 +0000 (23:11 +0200)]
Preliminaries for quiet option in progress class

13 years agoSilly install progress cosmetics
Panu Matilainen [Tue, 8 Jan 2008 20:32:15 +0000 (22:32 +0200)]
Silly install progress cosmetics

13 years agoDon't call installprogress Done() from destructor, not a very good idea
Panu Matilainen [Tue, 8 Jan 2008 18:59:11 +0000 (20:59 +0200)]
Don't call installprogress Done() from destructor, not a very good idea
to begin with and causes crash n burn in some situations (rhbz#419811).
Since rpm doesn't issue "all done" callback, manually call Done() after
transaction finishes.

13 years agoUpdate translations
Panu Matilainen [Tue, 8 Jan 2008 10:39:51 +0000 (12:39 +0200)]
Update translations

13 years agoFix includes wrt move to private
Panu Matilainen [Tue, 8 Jan 2008 10:39:23 +0000 (12:39 +0200)]
Fix includes wrt move to private

13 years agoUpdate potfiles
Panu Matilainen [Tue, 8 Jan 2008 09:53:41 +0000 (11:53 +0200)]
Update potfiles

13 years agoMark sqlite.h as private - it's only used for internal purposes and
Panu Matilainen [Tue, 8 Jan 2008 09:14:17 +0000 (11:14 +0200)]
Mark sqlite.h as private - it's only used for internal purposes and
we don't want to pretend to be a generic c++ wrapper for sqlite...

13 years agoEverything under apt-pkg/rpm is private, always been. libapt-pkg defines
Panu Matilainen [Tue, 8 Jan 2008 09:13:14 +0000 (11:13 +0200)]
Everything under apt-pkg/rpm is private, always been. libapt-pkg defines
the available interface, rpm/ part is just implementation details for
that backend.

13 years agoAvoid downloading same source package multiple times.
Panu Matilainen [Fri, 4 Jan 2008 14:41:47 +0000 (16:41 +0200)]
Avoid downloading same source package multiple times.
Patch originally by Michel Vogt for Debian apt.

13 years agoZero out text progress bug^H^H^Hbuffers to avoid garbled output.
Panu Matilainen [Fri, 4 Jan 2008 13:16:08 +0000 (15:16 +0200)]
Zero out text progress bug^H^H^Hbuffers to avoid garbled output.
Patch originally from Ryan Burns / Montavista, modified to use memset()
instead of legacy bzero()

13 years agoFix http password handling (Ryan Burns / MontaVista):
Panu Matilainen [Fri, 4 Jan 2008 12:37:14 +0000 (14:37 +0200)]
Fix http password handling (Ryan Burns / MontaVista):

This patch fixes a bug where if a user types the incorrect
login info, apt will continue to ask them for their
password several times more; even after they have typed it
in correctly.

13 years agoAdd support for 64bit mips (Ryan Burns / MontaVista)
Panu Matilainen [Fri, 4 Jan 2008 12:32:13 +0000 (14:32 +0200)]
Add support for 64bit mips (Ryan Burns / MontaVista)

13 years agoDon't fall back to ancient /var/state/apt directory if "new" /var/lib/apt
Panu Matilainen [Fri, 4 Jan 2008 12:30:53 +0000 (14:30 +0200)]
Don't fall back to ancient /var/state/apt directory if "new" /var/lib/apt
doesn't exist, instead explicitly complain and bail out.

13 years agoEliminate unused variables + work .. copy-paste errors?
Panu Matilainen [Fri, 4 Jan 2008 12:12:42 +0000 (14:12 +0200)]
Eliminate unused variables + work .. copy-paste errors?

13 years agoConditionalize the draconian time-hashing on rpmdsGetConf capability
Panu Matilainen [Fri, 4 Jan 2008 12:10:33 +0000 (14:10 +0200)]
Conditionalize the draconian time-hashing on rpmdsGetConf capability
instead of version.

13 years agoCast away whining from passing string constants to putenv() where used
Panu Matilainen [Fri, 4 Jan 2008 11:08:13 +0000 (13:08 +0200)]
Cast away whining from passing string constants to putenv() where used
to clear the environment.

13 years agoEliminate unused variable warnings.
Panu Matilainen [Fri, 4 Jan 2008 10:58:59 +0000 (12:58 +0200)]
Eliminate unused variable warnings.
RPMHandler::PutDep() always returns true anyway so checking the result
isn't interesting..

13 years agoFix member initialization order issues
Panu Matilainen [Fri, 4 Jan 2008 10:49:33 +0000 (12:49 +0200)]
Fix member initialization order issues

13 years agoAvoid off_t string format issues, the actual offset isn't interesting..
Panu Matilainen [Fri, 4 Jan 2008 10:24:59 +0000 (12:24 +0200)]
Avoid off_t string format issues, the actual offset isn't interesting..

13 years agoUse matching index type
Panu Matilainen [Fri, 4 Jan 2008 10:21:18 +0000 (12:21 +0200)]
Use matching index type

13 years agoOops, should be assignment not comparison
Panu Matilainen [Fri, 4 Jan 2008 10:13:09 +0000 (12:13 +0200)]
Oops, should be assignment not comparison

13 years agoFix build with rpm.org HEAD, compat typedefs where necessary
Panu Matilainen [Fri, 4 Jan 2008 09:59:05 +0000 (11:59 +0200)]
Fix build with rpm.org HEAD, compat typedefs where necessary

13 years agoMore string constant constification..
Panu Matilainen [Fri, 4 Jan 2008 09:49:50 +0000 (11:49 +0200)]
More string constant constification..

13 years agogetFileSigner() returns strings constants only, use const...
Panu Matilainen [Fri, 4 Jan 2008 09:38:34 +0000 (11:38 +0200)]
getFileSigner() returns strings constants only, use const...

13 years agoEscape % in rpm format string
Panu Matilainen [Fri, 4 Jan 2008 08:43:34 +0000 (10:43 +0200)]
Escape % in rpm format string

13 years agoAdd braces to avoid else-ambiguosness
Panu Matilainen [Fri, 4 Jan 2008 08:36:15 +0000 (10:36 +0200)]
Add braces to avoid else-ambiguosness

13 years agoExplicitly include <cstring> where needed, in gcc 4.3 <string> no
Panu Matilainen [Fri, 4 Jan 2008 08:30:06 +0000 (10:30 +0200)]
Explicitly include <cstring> where needed, in gcc 4.3 <string> no
longer automatically includes it.

13 years agoDuh, implementation part too..
Panu Matilainen [Fri, 4 Jan 2008 08:15:14 +0000 (10:15 +0200)]
Duh, implementation part too..

13 years agoAdd couple of missing consts...
Panu Matilainen [Thu, 3 Jan 2008 19:08:26 +0000 (21:08 +0200)]
Add couple of missing consts...

13 years agoMark string constants as such...
Panu Matilainen [Thu, 3 Jan 2008 18:55:22 +0000 (20:55 +0200)]
Mark string constants as such...

13 years agoMark sqlite method parameters const
Panu Matilainen [Sat, 22 Dec 2007 19:51:09 +0000 (21:51 +0200)]
Mark sqlite method parameters const