Logo Search packages:      
Sourcecode: langupdate version File versions

langupdate.cc File Reference


Detailed Description

Parse the cache output.

Author:
Neil Williams <codehelp@debian.org>

Definition in file langupdate.cc.

#include "config.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <locale.h>
#include <glib.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include <apt-pkg/configuration.h>
#include "langupdate.h"
#include "aptcache.h"

Go to the source code of this file.
#define APTARCHSTR   " -o APT::Architecture="
 debug handling
#define APTCONFIGSTR
 Configuration string for apt.
#define DPKG_II   "^Package: (.*)$"
#define GNU_WARRANTY
#define GREX_EMPTY   GRegexMatchFlags(0)
#define LOCALEGEN   "/etc/locale.gen"
#define STATUS_CHK   "Status"
static guint c = 0
static GHashTable * choices = NULL
static gboolean debug = false
 Keep temporary files around for debugging.
static gboolean dry_run = false
static GOptionEntry entries []
static GList * installed = NULL
static gchar * mirror = NULL
static GList * not_ours = NULL
 List of packages that are not from Emdebian.
static GHashTable * orphans = NULL
static gboolean purge_mode = false
static gchar * purge_names = NULL
static GList * purged = NULL
static gboolean show_version = false
static const gchar * sourceslist = "/var/lib/"PACKAGE"/sources.list"
static gchar * suite_codename = NULL
static GList * targets = NULL
static gchar * user_suite = NULL
static gint verbose = 0
static gboolean append_sourceslist (const gchar *lang)
 write the sources list
static gint lu_check_pkg_name (gconstpointer a, gconstpointer b)
 simple string comparison routine for a GList
static void lu_check_supported_suites (gchar *user_suite)
 checks the user specified suite against the supported list
gchar * lu_get_aptstring (void)
 Prepare a config string for apt.
static gchar * lu_parse_control (const gchar *control_line)
static void lu_parse_dpkg (gpointer key, gpointer value, gpointer data)
static gchar * lu_parse_installed (const gchar *name, const gchar *src, const gchar *locale)
 Parses list of all installed packages.
static void lu_purge_orphans (gpointer key, gpointer value, gpointer data)
static gboolean lu_skip_not_ours (gpointer key, gpointer value, gpointer data)
static gboolean lu_strip_components (gchar *line, gchar **code, gchar **root)
 strip extra components from a language variable
gint main (gint argc, gchar *argv[])
 Read the apt-cache to know what is available. then compare dpkg_list with apt_list.
static void output (gpointer key, gpointer data)
 install each available package name
static void remove_cache (const gchar *file, const gchar *user_suite)
static void remove_lists (gchar *suite)
static void run_apt_clean (const gchar *user_suite)
static gboolean start_sources_list (void)


Generated by  Doxygen 1.6.0   Back to index