Logo Search packages:      
Sourcecode: langupdate version File versions  Download package

langupdate.cc File Reference

Parse the cache output. More...

#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"
Include dependency graph for langupdate.cc:

Go to the source code of this file.

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

Detailed Description

Parse the cache output.

Neil Williams <codehelp@debian.org>

Definition in file langupdate.cc.

Generated by  Doxygen 1.6.0   Back to index