David Kalnischkies
b02fffa648
rename the options, document them and reorder the changelog a bit
12 years ago
David Kalnischkies
96cc64a521
move the users away from the deprecated StrToTime() method
12 years ago
David Kalnischkies
550891457f
use the portable timegm shown in his manpage instead of a strange
looking code copycat from wget
12 years ago
David Kalnischkies
bbde96a611
use the Valid-Until header from the Release file but if the user
provides a setting in the configuration prefer the date which is
earlier.
12 years ago
David Kalnischkies
0323317c08
enhance the Valid-Until code a bit by using the correct RFC1123StrToTime
method and allow for better translations of the error messages
12 years ago
David Kalnischkies
cd8cf88f0e
* apt-pkg/contrib/strutl.cc:
- split StrToTime() into HTTP1.1 and FTP date parser methods and
use strptime() instead of some selfmade scanf mangling
12 years ago
David Kalnischkies
1ddb859611
* apt-pkg/indexrecords.cc:
- backport forgotten Valid-Until patch from the obsolete experimental
branch to prevent replay attacks better, thanks to Thomas Viehmann
for the initial patch! (Closes : #499897 )
12 years ago
David Kalnischkies
9cc83a6fbc
add a GroupedFromCommandLine method to the PackageSet to split the
packages on the commandline into groups based on modifiers
12 years ago
David Kalnischkies
84910ad509
support special release-modifier 'installed' and 'candidate'
12 years ago
David Kalnischkies
fe870febbf
handle :arch modifier in PackageSet::FromString correctly
12 years ago
David Kalnischkies
c45f2d1995
do not insert end() Iterators into the CacheSet even if requested
12 years ago
David Kalnischkies
9f1f17ccd4
Don't increase the commandline parameter in the library but in the
application to be really generic.
12 years ago
David Kalnischkies
856d3b06a6
Add a method to get a VersionSet from the Commandline and refactor
the existing methods a bit to reuse them easier intern
12 years ago
David Kalnischkies
3f8621c5ef
store also the SourceList we use internally for export
12 years ago
David Kalnischkies
2e5f4e45f5
* apt-pkg/cachefile.{cc,h}:
- split Open() into submethods to be able to build only parts
- make the OpProgress optional in the Cache buildprocess
12 years ago
David Kalnischkies
a3c4c81afe
* apt-pkg/depcache.cc:
- switch i{Download,Usr}Size from double to (un)signed long long
The biggest reason is that this saves a lot of float point operations
we do in AddSizes() on integers. The only reason i see that this was
a double is that it was 64bit long and can therefore store bigger
values than int/long, but with the availablity of (un)signed long long
we are now also at 64bit and can store sizes more than 8 Exabytes big -
by the time this will be a limit the C/C++ Standard will have bigger types,
hopefully.
12 years ago
David Kalnischkies
81305a0b30
deprecate AddSize with Multiplier as it is unused and switch to
boolean instead to handle the sizes more gracefully.
12 years ago
David Kalnischkies
e2c66de5c5
* apt-pkg/pkgcache.h:
- switch {,Install-}Size to unsigned long long
* apt-pkg/depcache.cc:
- deal with long long, not with int to remove 2GB Limit (LP: #250909 )
12 years ago
David Kalnischkies
d4489d4983
* apt-pkg/cacheset.{cc,h}:
- add simple wrapper around std::set for cache structures
12 years ago
David Kalnischkies
7959c5eda8
rename packageset into cacheset while it is not too late
12 years ago
David Kalnischkies
bd2fb30a86
* apt-pkg/pkgcache.cc:
- get the best matching arch package from a group with FindPreferredPkg
12 years ago
David Kalnischkies
093e9f5d30
* apt-pkg/contrib/cmdline.cc:
- fix segfault in SaveInConfig caused by writing over char[] sizes
12 years ago
David Kalnischkies
6e235c6640
improve the handling of regex together with the architecture modifier
12 years ago
David Kalnischkies
78c3259686
move cmdline parsing from apt-cache to new FromCommandLine method
12 years ago
David Kalnischkies
ffee1c2bed
move regex magic from apt-get to new FromRegEx method
12 years ago
David Kalnischkies
e1dbde8dd0
* apt-pkg/packageset.h:
- add a simple wrapper around std::set for packages with it
12 years ago
David Kalnischkies
461e4a5e0d
* apt-pkg/depcache.cc:
- correct "Dangerous iterator usage." pointed out by cppcheck
12 years ago
David Kalnischkies
b3fdb99801
* apt-pkg/cacheiterator.h:
- let pkgCache::Iterator inherent std::iterator
12 years ago
David Kalnischkies
e1430400bf
* apt-pkg/indexrecords.{cc,h}:
- add a constant Exists check for MetaKeys
* apt-pkg/acquire-item.cc:
- do not try PDiff if it is not listed in the Meta file
12 years ago
David Kalnischkies
3152f4aa4a
* apt-pkg/aptconfiguration.cc:
- remove duplicate architectures in getArchitectures()
12 years ago
David Kalnischkies
392a882ad8
try harder to find the other pseudo versions for autoremove multiarch
12 years ago
David Kalnischkies
8378913047
* apt-pkg/depcache.cc:
- do the autoremove mark process also for required packages to handle
these illegally depending on lower priority packages (Closes : #583517 )
12 years ago
David Kalnischkies
d34690e1dc
* apt-pkg/deb/debsystem.cc:
- add better config item for extended_states file
12 years ago
David Kalnischkies
eb6f9bac96
forward manual-installed bit on package disappearance
12 years ago
David Kalnischkies
6cb1060b58
* apt-pkg/deb/dpkgpm.cc:
- write Disappeared also to the history.log
12 years ago
David Kalnischkies
642ebc1a04
- show at the end of the install process a list of disappeared packages
* apt-pkg/packagemanager.h:
- export info about disappeared packages with GetDisappearedPackages()
12 years ago
David Kalnischkies
b3514c5695
* apt-pkg/deb/dpkgpm.cc:
- add 'disappear' to the known processing states, thanks Jonathan Nieder
12 years ago
David Kalnischkies
e3ac3b464d
* contrib/mmap.cc:
- clarify "MMap reached size limit" error message, thanks Ivan Masár!
12 years ago
David Kalnischkies
6248b28e9c
* apt-pkg/depcache.cc:
- be doublesure that the killer query is empty before starting reinstall
12 years ago
Julian Andres Klode
921a3ce01c
apt-pkg/acquire-item.cc: Fix pkgAcqFile::Custom600Headers() to always return something.
12 years ago
David Kalnischkies
448eaf8b59
convert FileExists to DirectoryExists to check if the path is really a
directory (and to have a better method name in the error message if not)
12 years ago
Michael Vogt
63b528a458
* apt-pkg/deb/debrecords.cc:
- fix max tag buffer size (LP: #545336 , closes : #578959 )
12 years ago
David Kalnischkies
a101a93299
return in SingleArch a package also for "any"
12 years ago
Julian Andres Klode
61d15f9104
* apt-pkg/pkgcache.cc:
- Merge fix from David to correct handling in single-arch environments.
This makes apt-get showauto working.
12 years ago
Julian Andres Klode
229fb1a3a3
* apt-pkg/contrib/weakptr.h:
- add a class WeakPointable which allows one to register weak pointers to
an object which will be set to NULL when the object is deallocated.
* [ABI break] apt-pkg/acquire{-worker,-item,}.h:
- subclass pkgAcquire::{Worker,Item,ItemDesc} from WeakPointable.
12 years ago
David Kalnischkies
61a07c57a8
fix compiler warning: reaching end of non-void method
12 years ago
David Kalnischkies
52c4148509
* apt-pkg/pkgcache.h:
- enhance the Groups ABI by providing a ID as the other structs does
- check also the size of the Group struct then checking for the others
12 years ago
David Kalnischkies
94449d7cd3
* doc/cache.sgml:
- drop the file in favor of inplace documentation with doxygen
12 years ago
David Kalnischkies
583f7c147d
replace »« with '' in the internal error msg to have ascii chars for gettext
12 years ago
Michael Vogt
8f40076991
* apt-pkg/indexfile.cc:
- If no "_" is found in the language code, try to find a "."
This is required for languages like Esperanto that have no
county associated with them (LP: #560956 )
Thanks to "Aisano" for the fix
12 years ago