mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
This commit looks much more monumental than it is. Almost all just #include
reordering and adding ones that were forgotten (noticed when trying to compile after reordering). * Updated the HACKING file to include information on #include usage. * print -> vprint in "making dir" function in pactest.
This commit is contained in:
parent
facb99098d
commit
869e81e1cf
34
HACKING
34
HACKING
@ -1,8 +1,8 @@
|
||||
Contributing to pacman
|
||||
======================
|
||||
|
||||
Please read 'submitting-patches' and 'translation-help' in the same directory as
|
||||
this file.
|
||||
Please read 'submitting-patches' and 'translation-help' in the same directory
|
||||
as this file.
|
||||
|
||||
Coding style
|
||||
------------
|
||||
@ -62,4 +62,34 @@ Coding style
|
||||
NOT
|
||||
sizeof(*mylist);
|
||||
|
||||
Other Concerns
|
||||
--------------
|
||||
|
||||
Currently our #include usage is in messy shape, but this is no reason to
|
||||
continue down this messy path. When adding an include to a file, follow this
|
||||
general pattern, including blank lines:
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <standardheader.h>
|
||||
#include <another.h>
|
||||
#include <...>
|
||||
|
||||
Follow this with some more headers, depending on whether the file is in libalpm
|
||||
or pacman proper. For libalpm:
|
||||
|
||||
/* libalpm */
|
||||
#include "yourfile.h"
|
||||
#include "alpm_list.h"
|
||||
#include "anythingelse.h"
|
||||
|
||||
For pacman:
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
||||
/* pacman */
|
||||
#include "yourfile.h"
|
||||
#include "anythingelse.h"
|
||||
|
||||
vim: set ts=2 sw=2 et:
|
||||
|
@ -31,6 +31,7 @@
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
@ -38,7 +39,9 @@
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#include <libintl.h>
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "add.h"
|
||||
#include "alpm_list.h"
|
||||
#include "trans.h"
|
||||
#include "util.h"
|
||||
@ -54,7 +57,6 @@
|
||||
#include "provide.h"
|
||||
#include "conflict.h"
|
||||
#include "deps.h"
|
||||
#include "add.h"
|
||||
#include "remove.h"
|
||||
#include "handle.h"
|
||||
|
||||
|
@ -22,6 +22,8 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
@ -36,14 +38,15 @@
|
||||
#include <limits.h> /* PATH_MAX */
|
||||
#include <stdarg.h>
|
||||
#include <libintl.h>
|
||||
/* pacman */
|
||||
#include "config.h"
|
||||
|
||||
/* libalpm */
|
||||
#include "alpm.h"
|
||||
#include "alpm_list.h"
|
||||
#include "log.h"
|
||||
#include "error.h"
|
||||
#include "versioncmp.h"
|
||||
#include "md5.h"
|
||||
#include "sha1.h"
|
||||
#include "alpm_list.h"
|
||||
#include "package.h"
|
||||
#include "group.h"
|
||||
#include "util.h"
|
||||
@ -58,7 +61,6 @@
|
||||
#include "handle.h"
|
||||
#include "provide.h"
|
||||
#include "server.h"
|
||||
#include "alpm.h"
|
||||
|
||||
#define min(X, Y) ((X) < (Y) ? (X) : (Y))
|
||||
|
||||
|
@ -20,11 +20,12 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
/* libalpm */
|
||||
#include "alpm_list.h"
|
||||
#include "util.h"
|
||||
|
||||
|
@ -23,11 +23,14 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
/* pacman */
|
||||
#include "log.h"
|
||||
|
||||
/* libalpm */
|
||||
#include "backup.h"
|
||||
#include "alpm_list.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
|
||||
/* Look for a filename in a pmpkg_t.backup list. If we find it,
|
||||
|
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -36,10 +37,12 @@
|
||||
#ifdef CYGWIN
|
||||
#include <limits.h> /* PATH_MAX */
|
||||
#endif
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "db.h"
|
||||
#include "alpm_list.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
#include "db.h"
|
||||
#include "alpm.h"
|
||||
#include "error.h"
|
||||
#include "handle.h"
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -27,16 +28,17 @@
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <libintl.h>
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "cache.h"
|
||||
#include "alpm_list.h"
|
||||
#include "log.h"
|
||||
#include "alpm.h"
|
||||
#include "alpm_list.h"
|
||||
#include "util.h"
|
||||
#include "error.h"
|
||||
#include "package.h"
|
||||
#include "group.h"
|
||||
#include "db.h"
|
||||
#include "cache.h"
|
||||
|
||||
/* Returns a new package cache from db.
|
||||
* It frees the cache if it already exists.
|
||||
|
@ -23,28 +23,29 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <libintl.h>
|
||||
/* pacman */
|
||||
#include "handle.h"
|
||||
|
||||
/* libalpm */
|
||||
#include "conflict.h"
|
||||
#include "alpm_list.h"
|
||||
#include "handle.h"
|
||||
#include "trans.h"
|
||||
#include "util.h"
|
||||
#include "error.h"
|
||||
#include "log.h"
|
||||
#include "cache.h"
|
||||
#include "deps.h"
|
||||
#include "conflict.h"
|
||||
|
||||
|
||||
/** See if potential conflict 'name' matches package 'pkg'.
|
||||
|
@ -21,8 +21,9 @@
|
||||
#ifndef _ALPM_CONFLICT_H
|
||||
#define _ALPM_CONFLICT_H
|
||||
|
||||
#include "db.h"
|
||||
#include "alpm.h"
|
||||
#include "db.h"
|
||||
#include "package.h"
|
||||
|
||||
#define CONFLICT_FILE_LEN 512
|
||||
|
||||
|
@ -23,30 +23,32 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#include <dirent.h>
|
||||
#include <libintl.h>
|
||||
#include <regex.h>
|
||||
#ifdef CYGWIN
|
||||
#include <limits.h> /* PATH_MAX */
|
||||
#endif
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "db.h"
|
||||
#include "alpm_list.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
#include "error.h"
|
||||
#include "server.h"
|
||||
#include "db.h"
|
||||
#include "handle.h"
|
||||
#include "cache.h"
|
||||
#include "alpm.h"
|
||||
|
@ -21,6 +21,8 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -29,16 +31,17 @@
|
||||
#endif
|
||||
#include <libintl.h>
|
||||
#include <math.h>
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "deps.h"
|
||||
#include "alpm_list.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "error.h"
|
||||
#include "alpm_list.h"
|
||||
#include "package.h"
|
||||
#include "db.h"
|
||||
#include "cache.h"
|
||||
#include "provide.h"
|
||||
#include "deps.h"
|
||||
#include "versioncmp.h"
|
||||
#include "handle.h"
|
||||
|
||||
|
@ -22,10 +22,16 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <libintl.h>
|
||||
|
||||
/* libalpm */
|
||||
#include "error.h"
|
||||
#include "util.h"
|
||||
#include "alpm.h"
|
||||
|
||||
/* TODO does this really need a file all on its own? */
|
||||
char SYMEXPORT *alpm_strerror(int err)
|
||||
{
|
||||
switch(err) {
|
||||
|
@ -20,16 +20,18 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <libintl.h>
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "group.h"
|
||||
#include "alpm_list.h"
|
||||
#include "util.h"
|
||||
#include "error.h"
|
||||
#include "log.h"
|
||||
#include "group.h"
|
||||
#include "alpm_list.h"
|
||||
#include "alpm.h"
|
||||
|
||||
pmgrp_t *_alpm_grp_new()
|
||||
|
@ -22,6 +22,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
@ -30,15 +31,16 @@
|
||||
#include <syslog.h>
|
||||
#include <libintl.h>
|
||||
#include <time.h>
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "handle.h"
|
||||
#include "alpm_list.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "alpm_list.h"
|
||||
#include "error.h"
|
||||
#include "trans.h"
|
||||
#include "alpm.h"
|
||||
#include "server.h"
|
||||
#include "handle.h"
|
||||
|
||||
pmhandle_t *_alpm_handle_new()
|
||||
{
|
||||
|
@ -21,9 +21,11 @@
|
||||
#ifndef _ALPM_HANDLE_H
|
||||
#define _ALPM_HANDLE_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "alpm_list.h"
|
||||
#include "db.h"
|
||||
#include "log.h"
|
||||
#include "alpm_list.h"
|
||||
#include "alpm.h"
|
||||
#include "trans.h"
|
||||
|
||||
|
@ -20,12 +20,14 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <time.h>
|
||||
/* pacman */
|
||||
#include "alpm.h"
|
||||
|
||||
/* libalpm */
|
||||
#include "log.h"
|
||||
#include "alpm.h"
|
||||
|
||||
void _alpm_log(pmloglevel_t flag, char *fmt, ...)
|
||||
{
|
||||
|
@ -24,6 +24,7 @@ documentation and/or software.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "md5.h"
|
||||
|
||||
/* Constants for MD5Transform routine.
|
||||
|
@ -19,10 +19,14 @@ documentation and/or software.
|
||||
*/
|
||||
#define MD MD5
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <libintl.h>
|
||||
|
||||
/* libalpm */
|
||||
#include "alpm.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
|
@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
@ -33,12 +34,13 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "package.h"
|
||||
#include "alpm_list.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
#include "error.h"
|
||||
#include "alpm_list.h"
|
||||
#include "db.h"
|
||||
#include "cache.h"
|
||||
#include "provide.h"
|
||||
|
@ -20,14 +20,16 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
/* pacman */
|
||||
#include "cache.h"
|
||||
|
||||
/* libalpm */
|
||||
#include "provide.h"
|
||||
#include "alpm_list.h"
|
||||
#include "cache.h"
|
||||
#include "db.h"
|
||||
#include "log.h"
|
||||
#include "provide.h"
|
||||
|
||||
/* return a alpm_list_t of packages in "db" that provide "package"
|
||||
*/
|
||||
|
@ -23,24 +23,26 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__sun__)
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__sun__)
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <libintl.h>
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "remove.h"
|
||||
#include "alpm_list.h"
|
||||
#include "trans.h"
|
||||
#include "util.h"
|
||||
@ -55,7 +57,6 @@
|
||||
#include "cache.h"
|
||||
#include "deps.h"
|
||||
#include "provide.h"
|
||||
#include "remove.h"
|
||||
#include "handle.h"
|
||||
#include "alpm.h"
|
||||
|
||||
|
@ -19,6 +19,8 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
@ -29,8 +31,9 @@
|
||||
#include <time.h>
|
||||
#include <download.h>
|
||||
|
||||
/* pacman */
|
||||
/* libalpm */
|
||||
#include "server.h"
|
||||
#include "alpm_list.h"
|
||||
#include "error.h"
|
||||
#include "log.h"
|
||||
#include "alpm.h"
|
||||
|
@ -22,20 +22,18 @@
|
||||
Robert Klep <robert@ilse.nl> -- Expansion function fix
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <libintl.h>
|
||||
|
||||
/* libalpm */
|
||||
#include "sha1.h"
|
||||
#include "alpm.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
#include "sha1.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
Not-swap is a macro that does an endian swap on architectures that are
|
||||
|
@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
@ -33,10 +34,12 @@
|
||||
#endif
|
||||
#include <dirent.h>
|
||||
#include <libintl.h>
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "sync.h"
|
||||
#include "alpm_list.h"
|
||||
#include "log.h"
|
||||
#include "error.h"
|
||||
#include "alpm_list.h"
|
||||
#include "package.h"
|
||||
#include "db.h"
|
||||
#include "cache.h"
|
||||
@ -45,7 +48,6 @@
|
||||
#include "provide.h"
|
||||
#include "trans.h"
|
||||
#include "util.h"
|
||||
#include "sync.h"
|
||||
#include "versioncmp.h"
|
||||
#include "handle.h"
|
||||
#include "util.h"
|
||||
|
@ -23,16 +23,19 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <libintl.h>
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "trans.h"
|
||||
#include "alpm_list.h"
|
||||
#include "error.h"
|
||||
#include "package.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "alpm_list.h"
|
||||
#include "handle.h"
|
||||
#include "add.h"
|
||||
#include "remove.h"
|
||||
|
@ -23,14 +23,8 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__sun__)
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef __sun__
|
||||
@ -45,6 +39,12 @@
|
||||
#include <time.h>
|
||||
#include <syslog.h>
|
||||
#include <sys/wait.h>
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__sun__)
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#include <libintl.h>
|
||||
#ifdef CYGWIN
|
||||
#include <limits.h> /* PATH_MAX */
|
||||
@ -54,12 +54,12 @@
|
||||
#include <mntent.h>
|
||||
#endif
|
||||
|
||||
/* pacman */
|
||||
/* libalpm */
|
||||
#include "util.h"
|
||||
#include "alpm_list.h"
|
||||
#include "log.h"
|
||||
#include "trans.h"
|
||||
#include "sync.h"
|
||||
#include "util.h"
|
||||
#include "error.h"
|
||||
#include "package.h"
|
||||
#include "alpm.h"
|
||||
|
@ -22,17 +22,19 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <libintl.h>
|
||||
/* pacman */
|
||||
|
||||
/* libalpm */
|
||||
#include "versioncmp.h"
|
||||
#include "alpm_list.h"
|
||||
#include "alpm.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
#include "alpm_list.h"
|
||||
#include "versioncmp.h"
|
||||
|
||||
#ifndef HAVE_STRVERSCMP
|
||||
/* GNU's strverscmp() function, taken from glibc 2.3.2 sources
|
||||
|
@ -255,7 +255,7 @@ def mkdir(dir):
|
||||
else:
|
||||
parent, thisdir = os.path.split(dir)
|
||||
if parent: mkdir(parent) #recurse to make all parents
|
||||
print "making dir %s" % thisdir
|
||||
vprint("making dir %s" % thisdir)
|
||||
if thisdir: os.mkdir(dir)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
@ -19,6 +19,8 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -26,11 +28,12 @@
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
||||
/* pacman */
|
||||
#include "add.h"
|
||||
#include "log.h"
|
||||
#include "downloadprog.h"
|
||||
#include "trans.h"
|
||||
#include "add.h"
|
||||
#include "conf.h"
|
||||
#include "util.h"
|
||||
|
||||
|
@ -19,6 +19,8 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -26,12 +28,13 @@
|
||||
#include <libintl.h>
|
||||
|
||||
#include <alpm.h>
|
||||
|
||||
/* pacman */
|
||||
#include "conf.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "sync.h"
|
||||
#include "downloadprog.h"
|
||||
#include "conf.h"
|
||||
|
||||
config_t *config_new()
|
||||
{
|
||||
|
@ -25,14 +25,16 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <libintl.h>
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
||||
/* pacman */
|
||||
#include "deptest.h"
|
||||
#include "util.h"
|
||||
#include "conf.h"
|
||||
#include "log.h"
|
||||
#include "sync.h"
|
||||
#include "deptest.h"
|
||||
|
||||
extern config_t *config;
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -32,10 +33,11 @@
|
||||
#include <math.h>
|
||||
|
||||
#include <alpm.h>
|
||||
|
||||
/* pacman */
|
||||
#include "downloadprog.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "downloadprog.h"
|
||||
#include "conf.h"
|
||||
|
||||
/* progress bar */
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
@ -28,6 +29,7 @@
|
||||
#include <libintl.h>
|
||||
|
||||
#include <alpm.h>
|
||||
|
||||
/* pacman */
|
||||
#include "log.h"
|
||||
#include "conf.h"
|
||||
|
@ -19,6 +19,8 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -28,10 +30,11 @@
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
||||
/* pacman */
|
||||
#include "package.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
#include "package.h"
|
||||
|
||||
/* Display the content of an installed package
|
||||
*
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
@ -44,6 +45,7 @@
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
||||
/* pacman */
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
|
@ -19,6 +19,8 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
@ -28,9 +30,10 @@
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
||||
/* pacman */
|
||||
#include "package.h"
|
||||
#include "query.h"
|
||||
#include "package.h"
|
||||
#include "log.h"
|
||||
#include "conf.h"
|
||||
#include "sync.h"
|
||||
|
@ -19,6 +19,8 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -26,11 +28,12 @@
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
||||
/* pacman */
|
||||
#include "remove.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "trans.h"
|
||||
#include "remove.h"
|
||||
#include "conf.h"
|
||||
|
||||
extern config_t *config;
|
||||
|
@ -19,16 +19,15 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
#include <libintl.h>
|
||||
@ -41,13 +40,14 @@
|
||||
#include <download.h> /* downloadLastErrString */
|
||||
/* TODO remove above download.h inclusion once we abstract more, and also
|
||||
* remove it from Makefile.am on the pacman side */
|
||||
|
||||
/* pacman */
|
||||
#include "sync.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "downloadprog.h"
|
||||
#include "package.h"
|
||||
#include "trans.h"
|
||||
#include "sync.h"
|
||||
#include "conf.h"
|
||||
|
||||
extern config_t *config;
|
||||
|
@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -30,10 +31,11 @@
|
||||
#include <wchar.h>
|
||||
|
||||
#include <alpm.h>
|
||||
|
||||
/* pacman */
|
||||
#include "trans.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "trans.h"
|
||||
#include "conf.h"
|
||||
|
||||
#define LOG_STR_LEN 256
|
||||
|
@ -19,15 +19,16 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
||||
/* pacman */
|
||||
#include "add.h"
|
||||
#include "upgrade.h"
|
||||
#include "add.h"
|
||||
#include "conf.h"
|
||||
|
||||
extern config_t *config;
|
||||
|
@ -19,16 +19,16 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
#include <sys/syslimits.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "config.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -44,6 +44,7 @@
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
||||
/* pacman */
|
||||
#include "util.h"
|
||||
#include "conf.h"
|
||||
|
@ -19,6 +19,8 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -19,14 +19,18 @@
|
||||
* USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
/* TODO this is probably not the best way to do this */
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX 1024
|
||||
#endif
|
||||
|
||||
#include <alpm.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
Loading…
Reference in New Issue
Block a user