langupdate.h File Reference


Detailed Description

Parse the cache output.

Author:
Neil Williams <codehelp@debian.org>

Definition in file langupdate.h.

Go to the source code of this file.
#define LOCALE_SUFFIX   "locale"
#define PACKAGE_CHK   "Package"
#define DPKG_FILE   "/var/lib/dpkg/status"
#define SUITE   "unstable"
 default for the command line configuration.
gchar * lu_get_aptstring (void)
 Collate the various apt options into a string.


Function Documentation

gchar* lu_get_aptstring ( void   ) 

Collate the various apt options into a string.

Depending on various settings, the apt configuration list needs to be adjusted so it cannot be completely defined as a macro. This function adds the customisations, creates a newly allocated string and returns it. The caller is responsible for freeing the string.

Also sets the langupdate cache data to the same configuration if this has not been done already.

Returns:
newly allocated string of apt options or NULL on error.

Definition at line 130 of file langupdate.cc.

00131 {
00132     return g_strconcat (APTARCHSTR, HOST_CPU, " ", APTCONFIGSTR, "-o Dir::State=",
00133         suite_codename, " -o Dir::Cache=", suite_codename, NULL);
00134 }


Generated on Sun Jan 18 17:25:32 2009 for langupdate by  doxygen 1.5.6