]> git.saurik.com Git - apt.git/commitdiff
drop apt-changelog, apt-get changelog provides this
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 18 Nov 2010 11:13:43 +0000 (12:13 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 18 Nov 2010 11:13:43 +0000 (12:13 +0100)
cmdline/apt-changelog [deleted file]
cmdline/makefile
doc/apt-changelog.1.xml [deleted file]

diff --git a/cmdline/apt-changelog b/cmdline/apt-changelog
deleted file mode 100755 (executable)
index 6d7c0e9..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Fetch Package changelog for given source or binary package. Send it through
-# a pager if stdout is a terminal.
-# (C) 2010 Canonical Ltd
-# Author: Martin Pitt <martin.pitt@ubuntu.com>
-
-set -e
-
-# evaluate and check CLI argumens
-pkg="$1"
-
-if [ -z "$1" -o -n "$3" ]; then
-    echo "Usage: $0 <package_name> [ <version> | candidate ]" >&2
-    exit 1
-fi
-
-version="$2"
-
-# do we want the log for the currently installed version?
-if [ -z "$version" ]; then
-    if ! dpkgs=`dpkg -s $pkg 2>/dev/null`; then
-       echo "ERROR: Package $pkg is not installed; try 'candidate' version for uninstalled packages" >&2
-       exit 1
-    fi
-    version=`echo "$dpkgs" | grep ^Version`
-fi
-
-# turn binary package names into source
-if src=`apt-cache show $pkg 2>/dev/null| grep -m 1 ^Source:`; then
-    pkg=${src#Source: }
-fi
-
-# get version and directory
-if ! showsrc=`apt-cache showsrc $pkg 2>/dev/null` || [ -z "$showsrc" ] ; then
-    echo "ERROR: Source or binary package $pkg does not exist" >&2
-    exit 1
-fi
-
-if [ "$version" = "candidate" ]; then
-    version=`echo "$showsrc"| grep -m 1 ^Version:`
-fi
-
-# strip off tag name and epoch
-version=${version#Version: }
-version=${version#*:}
-
-dir=`echo "$showsrc"| grep ^Directory:`
-dir=${dir#Directory: }
-
-# get configuration
-eval `apt-config shell SERVER Apt::Changelog::Server`
-
-if [ -z "$SERVER" ]; then
-    echo "ERROR: You need to set Apt::Changelog::Server configuration option" >&2
-    exit 1
-fi
-
-# fetch it
-OUT=`mktemp -t "${pkg}.changes.XXXXXX"`
-trap "rm $OUT" 0 HUP INT QUIT ILL ABRT FPE SEGV PIPE TERM
-if ! wget -q -O- ${SERVER}/$dir/${pkg}_${version}/changelog > "$OUT"
-then
-    echo "ERROR: changelog for this version is not (yet) available; try https://launchpad.net/ubuntu/+source/$pkg/+changelog" >&2
-    exit 1
-fi
-sensible-pager "$OUT"
-
index 61fa77dc2ba501be2faa6e854c5fb0611f3398ef..12418bd2840bce7518758b20a99a5e3757de9ac0 100644 (file)
@@ -65,9 +65,4 @@ include $(COPY_H)
 #TARGET=program
 #include $(COPY_H)
 
-# The apt-changelog program
-SOURCE=apt-changelog
-TO=$(BIN)
-TARGET=program
-include $(COPY_H)
 
diff --git a/doc/apt-changelog.1.xml b/doc/apt-changelog.1.xml
deleted file mode 100644 (file)
index f881dad..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="no"?>
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
-  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
-
-<!ENTITY % aptent SYSTEM "apt.ent">
-%aptent;
-
-<!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
-%aptverbatiment;
-
-]>
-
-<refentry>
-
-<refentryinfo>
-
-   <author>
-    <firstname>Martin</firstname>
-    <surname>Pitt</surname>
-    <contrib></contrib>
-   </author>
-   &apt-email;
-   &apt-product;
-   <!-- The last update date -->
-   <date>09 November 2010</date>
- </refentryinfo>
- <refmeta>
-   <refentrytitle>apt-changelog</refentrytitle>
-   <manvolnum>1</manvolnum>
-   <refmiscinfo class="manual">APT</refmiscinfo>
- </refmeta>
- <!-- Man page title -->
- <refnamediv>
-    <refname>apt-changelog</refname>
-    <refpurpose>APT package changelog retriever</refpurpose>
- </refnamediv>
-
- <!-- Arguments -->
- <refsynopsisdiv>
-   <cmdsynopsis>
-      <command>apt-changelog</command>
-      <arg choice="plain"><replaceable>packagename</replaceable></arg>
-      <group>
-        <arg choice="plain"><replaceable>version</replaceable></arg>
-        <arg choice="plain">candidate</arg>
-      </group>
-   </cmdsynopsis>
- </refsynopsisdiv>
-
- <refsect1><title>Description</title>
-   <para>
-   <command>apt-changelog</command> downloads a package changelog and displays
-   it through <command>sensible-pager</command>. The server name and base
-   directory is defined in the <literal>APT::Changelog::Server</literal>
-   variable (e. g. <ulink>http://packages.debian.org/changelogs</ulink> for
-   Debian or <ulink>http://changelogs.ubuntu.com/changelogs</ulink> for
-   Ubuntu).
-   </para>
-
-   <para>
-   By default it displays the changelog for the version that is installed.
-   However, you can specify a different version as the second argument; if you 
-   specify <constant>candidate</constant>, it will fetch the changelog for the
-   latest available version of that package, i. e. the version which you would
-   get with <command>apt-get install <parameter>packagename</parameter></command>.
-   </para>
-</refsect1>
-
-<refsect1><title>See Also</title>
-<para>
-&apt-get;
-</para>
-</refsect1>
-
- &manbugs;
-
-</refentry>
-