IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
- apt-get, apt-shell: when a package could not be found, print the
unmangled package request string (by Igor Vlasenko; closes: #27364).
- apt-shell: do not abort when commit is cancelled (closes: #13877);
Unlike one may suppose, this change will not cause the cache of
accumulated changes to be cleared by cancelled "commit" operation, but
this is exactly what Vitaly Lipatov has proposed in his comments to #13877.
Unlike one may suppose, this change will not cause the cache of accumulated
changes to be cleared by cancelled "commit" operation, but this is
exactly what Vitaly Lipatov has proposed in his comments to ALT#13877.
It is not clear what rpmdepCheck() return code is supposed to mean.
Logically, non-zero return code should mean that the dependency check
failed. However, rpm can also return 0 (for "no error") while setting
"conflicts" pointer. So, for now, it seems that we should check both
the return code and the pointer.
Add RecordParser::Changelog() and SrcRecordParser::Changelog() functions
that returns raw changelog text.
libapt-pkg SONAME changed according to libtool versioning rules.
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
(old)
$ apt-cache whatdepends perl-Bit-Vector
perl-Bit-Vector-6.4-alt2
$
(new)
$ ./cmdline/apt-cache whatdepends perl-Bit-Vector
perl-Bit-Vector-6.4-alt2
perl-Date-Calc-5.4-alt2
Depends: <perl(Bit/Vector.pm)>
perl-Bit-Vector-6.4-alt2
$
Note that perl-Date-Calc has versioned virtual dependency:
$ rpm -qR perl-Date-Calc |grep Vector
perl(Bit/Vector.pm) >= 6.400
$
The problem was that version comparison was performed against
perl-Bit-Vector version (which is 6.4-alt2), not against provided
perl(Bit/Vector.pm) version (which is 6.400).
$ diff -U1 <(apt-cache whatdepends perl-base) <(./cmdline/apt-cache whatdepends perl-base)
--- /tmp/.private/at/zshtuurCP 2009-08-03 15:45:46 +0400
+++ /tmp/.private/at/zshfynbjW 2009-08-03 15:45:46 +0400
@@ -7145,2 +7145,5 @@
perl-base-1:5.8.9-alt3
+ perl-HTML-FromText-2.05-alt3
+ Depends: <perl(Text/Tabs.pm)>
+ perl-base-1:5.8.9-alt3
perl-Getopt-ArgvFile-1.10-alt2
@@ -8458,4 +8461,2 @@
perl-base-1:5.8.9-alt3
- perl-base-1:5.8.9-alt3
- Obsoletes: <perl-MIME-Base64>
nix-0.12-1
Again, this shows that versioned virtual dependencies are handled
properly now, more or less. However, there is also a change in
"Obsoletes" which I did not expect.
apt/apt-pkg/rpm/rpmversion.cc:
| // rpmVS::CheckDep - Check a single dependency /*{{{*/
| // ---------------------------------------------------------------------
| /* This prototype is a wrapper over CheckDep above. It's useful in the
| cases where the kind of dependency matters to decide if it matches
| or not */
| bool rpmVersioningSystem::CheckDep(const char *PkgVer,
| pkgCache::DepIterator Dep)
| {
| if (Dep->Type == pkgCache::Dep::Obsoletes &&
| (PkgVer == 0 || PkgVer[0] == 0))
| return false;
| return CheckDep(PkgVer,Dep->CompareOp,Dep.TargetVer());
| }
I'm not sure if this "Obsoletes" logic should be enabled in WhatDepends.
But at least it can show "Requires" now, which is what I need.