Commit Graph

268 Commits

Author SHA1 Message Date
Aleksei Nikiforov
da435cfeb9 Fix dependencies calculation and virtual resolving. 2017-10-31 14:44:37 +03:00
Aleksei Nikiforov
06dad0da17 apt-mark: implement showstate subcommand to list state of specified packages (or all installed packages) 2017-10-30 18:24:32 +03:00
Aleksei Nikiforov
0b3c4450b3 apt-get autoremove: handle virtual dependencies manually.
pkgProblemResolver doesn't work reliably enough.
2017-10-30 18:10:37 +03:00
Aleksei Nikiforov
cbe220e836 0.5.15lorg2-alt58
- Implemented following actions and commands (closes: #34036):
  "apt-get autoremove", "apt-mark showmanual [package1 ...]", "apt-mark showauto [package1 ...]",
  "apt-mark manual package1 [package2 ...]", "apt-mark auto package1 [package2 ...]".
2017-10-30 12:39:15 +03:00
Aleksei Nikiforov
ffa7e97e05 Fix apt-get install and dependency fixer to not mark packages manually installed when they're actually auto-installed. 2017-10-30 12:33:17 +03:00
Aleksei Nikiforov
be7950c92d apt-get autoremove: properly process virtual dependencies. 2017-10-30 09:40:14 +03:00
Aleksei Nikiforov
11a3cc6307 apt-get: implement 'autoremove' action. 2017-10-27 18:05:47 +03:00
Aleksei Nikiforov
ccdd931577 apt-get: implement handling of flag 'auto' for upgrade and dist-upgrade actions. 2017-10-27 16:38:26 +03:00
Aleksei Nikiforov
fc9209dd96 Don't keep records for packages not installed.
Allow to toggle marking reinstalled packages as manually reinstalled.
2017-10-27 16:38:25 +03:00
Aleksei Nikiforov
0834061d1f Apt-mark: implement storing and retrieving list of automatically-installed packages. 2017-10-27 14:41:34 +03:00
Aleksei Nikiforov
9d47fcf4db Add skeleton of apt-mark. 2017-10-26 16:15:19 +03:00
Aleksei Nikiforov
da715f8a09 Move some common functions out of apt-get.cc to library. 2017-10-25 14:54:48 +03:00
Aleksei Nikiforov
ddf5eedd3f Replace legacy int types. 2017-10-24 13:46:02 +03:00
Gleb Fotengauer-Malinovskiy
7c494f7f35 0.5.15lorg2-alt57
- Fixed script_slot variable (vseleznv@; ALT#32941).
- Used recently restored librpm rpmRangesOverlap, and
  rpmCheckRpmlibProvides functions.
2017-07-03 19:57:37 +03:00
Gleb Fotengauer-Malinovskiy
946814e3a4 Use ALT-specific librpm rpm{RangesOverlap,CheckRpmlibProvides} interfaces
That amazing modern rpmds interface is awful.  We had to add hacks to
make sure we have only one rpmstrPool, but it was not enough.
Now we have good old functions restored in ALT librpm.
2017-07-03 19:57:37 +03:00
Gleb Fotengauer-Malinovskiy
a3b8f5abb5 Revert "Optimize rpmstrPool usage"
This reverts commit faf04db603.
2017-07-03 19:57:37 +03:00
Gleb Fotengauer-Malinovskiy
145be4c742 luaiface: drop leftover variable name definitions 2017-07-03 19:57:37 +03:00
13acfd51de luaiface (fix): switch script_slot variable name and value in the right places (ALT#33074) 2017-07-03 17:44:48 +03:00
Gleb Fotengauer-Malinovskiy
6feb4a7863 0.5.15lorg2-alt56
- Added support of lua 5.3.
- Rebuilt with liblua5.3.
2016-12-21 15:35:05 +03:00
Gleb Fotengauer-Malinovskiy
2cf5f79ea1 luaiface: added support of lua 5.3 2016-12-21 15:07:28 +03:00
Gleb Fotengauer-Malinovskiy
6be164d005 0.5.15lorg2-alt55
- Optimized all rpmds operations.
2016-12-16 19:05:05 +03:00
Gleb Fotengauer-Malinovskiy
faf04db603 Optimize rpmstrPool usage
Introduce global rpmstrPool object and make all rpmds constructors
use it.
2016-12-16 18:59:43 +03:00
Gleb Fotengauer-Malinovskiy
7fbdefdcc2 0.5.15lorg2-alt54
- Fixed build with rpm-4.13 (legion@).
- Disabled fancypercents by default.
- Backported fix for logic about package sizes.
- Fixed support of librpm promoteepoch option.
- Bumped soversion.
2016-11-21 19:17:49 +03:00
Gleb Fotengauer-Malinovskiy
54a93466a7 Bump soversion 2016-11-21 19:17:15 +03:00
Gleb Fotengauer-Malinovskiy
c1eab85442 rpmsystem.cc: fix {,no}promote logic
- Use librpm's default value;
- Add support for altrpm's --nopromoteepoch option.
2016-11-21 18:50:24 +03:00
Gleb Fotengauer-Malinovskiy
94e58fe1d8 rpmListParser::CollectFileProvides: it is okay if package doesn't contain files 2016-07-15 20:17:17 +03:00
Gleb Fotengauer-Malinovskiy
16411cf341 rpmhandler.cc: drop check for _dbapi 2016-07-15 18:07:04 +03:00
Gleb Fotengauer-Malinovskiy
8dc7047a6d Fix build with rpm-4.13 2016-07-15 18:07:04 +03:00
David Kalnischkies
afdcaf63cf * 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)
(cherry picked from commit e2c66de5c5e63d8400efb0522c31fbe1ec225f93)
2016-07-13 20:19:40 +03:00
Gleb Fotengauer-Malinovskiy
adf3585f8a Disable fancypercents by default 2016-06-20 15:15:36 +03:00
Alexey Gladkov
c89d404a18 Use rpm-4.12.90 v1
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
2016-06-20 11:52:46 +02:00
Ivan Zakharyaschev
59b478d2ca 0.5.15lorg2-alt53
- doc/: Add a note about APT_CONFIG in the -c description
  (Closes: Debian #578267) (thx David Kalnischkies).
2015-11-27 19:22:50 +03:00
David Kalnischkies
edf1257ae9 * doc/apt.ent:
- Add a note about APT_CONFIG in the -c description (Closes: #578267)

(cherry picked from commit 75a53a7c29bf3b2dd8d898ed650b1fe937119080
from git://anonscm.debian.org/git/apt/apt.git with:

git cherry-pick -Xsubtree=apt -x 75a53a7c

)

Conflicts:
	apt/debian/changelog
	apt/doc/apt.ent
2015-11-27 19:15:34 +03:00
Gleb Fotengauer-Malinovskiy
cf5a1ae293 0.5.15lorg2-alt52
- Fixed apt usage with redefined rpm binary name.
2015-05-29 21:03:42 +03:00
Gleb Fotengauer-Malinovskiy
8c3f1ed576 rpmpm.cc: fix use after free of temporary std::string object
According to C++ standard (since C++89), this string is destroyed right
after evaluation of .c_str().
In addition, gcc5 with c++11 ABI mode enabled cleans memory in
basic_string destructor and reuses memory in *next* basic_string
constructor.

This led to the error:
 # apt-get install doxygen -o RPM::PM=external -o Dir::Bin::gpg=false -qq
 Executing RPM (/bin/rpm -U -v --oldpackage)...
 Could not exec /
 E: Sub-process /bin/rpm returned an error code (100)
2015-05-29 21:03:09 +03:00
Gleb Fotengauer-Malinovskiy
85c16e95fb 0.5.15lorg2-alt51
- Bumped soversion.
- Rebuilt for C++11 ABI.
2015-05-28 14:20:31 +03:00
Gleb Fotengauer-Malinovskiy
c17f8ba375 Bump soversion 2015-05-28 13:47:48 +03:00
Gleb Fotengauer-Malinovskiy
3519ad01ac 0.5.15lorg2-alt50
- Increased default APT::Cache-Limit:
 + up to 96M on 64bit systems.
 + up to 80M on 32bit systems.
2015-03-31 20:03:22 +03:00
Gleb Fotengauer-Malinovskiy
abf6d39f75 Increase default APT::Cache-Limit 2015-03-31 20:03:22 +03:00
Ivan Zakharyaschev
5705543497 .spec: rm trailing whitespace.
(Hopefully, this doesn't break the changelog inheritance check.)
2015-03-31 20:03:22 +03:00
Ivan Zakharyaschev
20e5371562 .spec: unneeded setup for Emacs. 2015-03-31 20:03:22 +03:00
62ebba07ee 0.5.15lorg2-alt49
- Reintroduced '%set_verify_elf_method strict'.
2014-11-28 14:11:09 +00:00
Gleb Fotengauer-Malinovskiy
2b715d3452 0.5.15lorg2-alt48
- Added buildtime to downloaded package name.
2014-11-27 19:34:20 +03:00
Gleb Fotengauer-Malinovskiy
d17234e74e acquire-item.cc: add BTime string to the name of downloaded package 2014-11-25 16:05:10 +03:00
a2b813b80b 0.5.15lorg2-alt47
- Added apt's package NEVRA string to OptionsHash.
2014-09-12 00:57:44 +00:00
54d7a63354 Add package NEVRA string to OptionsHash 2014-09-12 00:56:08 +00:00
Gleb Fotengauer-Malinovskiy
4aad676788 buildlib/archtable: add aarch64 2014-09-10 14:08:31 +04:00
Gleb Fotengauer-Malinovskiy
be0d3a6eb0 0.5.15lorg2-alt46.1
- Bump soversion.
2014-08-13 16:37:03 +04:00
Gleb Fotengauer-Malinovskiy
3091599081 Bump soversion 2014-08-13 16:32:36 +04:00
Gleb Fotengauer-Malinovskiy
202f4861f2 0.5.15lorg2-alt46
- apt-pkg/policy.cc: it is ok, if default PinDir doesn't exist
  (reported by rider@).
2014-07-04 15:56:18 +04:00