Logo Search packages:      
Sourcecode: langupdate version File versions

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 142 of file langupdate.cc.

References APTARCHSTR, and APTCONFIGSTR.

Referenced by output(), and run_apt_clean().

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


Generated by  Doxygen 1.6.0   Back to index