diff options
author | Daniel Hartwig <mandyke@gmail.com> | 2012-06-28 20:07:38 +0800 |
---|---|---|
committer | Daniel Hartwig <mandyke@gmail.com> | 2012-06-28 20:07:38 +0800 |
commit | a7f3cf73edc9bae4208a4ea9d61dd25b753dced5 (patch) | |
tree | 8d1eba78e75ae108b308961d8c887c9ccc1a1f6c /src/cmdline | |
parent | faedc8178b90b77e030344dfc368e3fa3d88f050 (diff) | |
download | aptitude-a7f3cf73edc9bae4208a4ea9d61dd25b753dced5.tar.gz |
Guess changelog URI for third-party sites
Contruct a changelog file path for third party sites that
do not use packages.debian.org/changelogs
This simply uses the ArchiveURI() of the source pkg and
looks for a .changelog file there.
LP: #563155
Diffstat (limited to 'src/cmdline')
-rw-r--r-- | src/cmdline/cmdline_changelog.cc | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/cmdline/cmdline_changelog.cc b/src/cmdline/cmdline_changelog.cc index 966b9273..370301af 100644 --- a/src/cmdline/cmdline_changelog.cc +++ b/src/cmdline/cmdline_changelog.cc @@ -230,7 +230,7 @@ void set_name(temp::name n, temp::name *target) term_metrics); boost::shared_ptr<aptitude::apt::changelog_info> - info = aptitude::apt::changelog_info::create(srcpkg, ver, section, name); + info = aptitude::apt::changelog_info::guess(srcpkg, ver, section, name); get_changelog(info, callbacks, @@ -316,22 +316,6 @@ void do_cmdline_changelog(const vector<string> &packages, if(!ver.end()) { - // Move this to a central location and just display an - // apt error? - bool in_debian=false; - - for(pkgCache::VerFileIterator vf=ver.FileList(); - !vf.end() && !in_debian; ++vf) - if(!vf.File().end() && vf.File().Origin()!=NULL && - strcmp(vf.File().Origin(), "Debian")==0) - in_debian=true; - - if(!in_debian) - { - _error->Error(_("%s is not an official Debian package, cannot display its changelog."), input.c_str()); - continue; - } - get_changelog(ver, filename, term_metrics); } } |