1 /* opkg.h - the itsy package management system
5 Copyright (C) 2001 University of Southern California
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2, or (at
10 your option) any later version.
12 This program is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
26 #define OPKG_DEBUG_NO_TMP_CLEANUP
30 #include "opkg_conf.h"
31 #include "opkg_message.h"
33 #define OPKG_PKG_EXTENSION ".ipk"
34 #define DPKG_PKG_EXTENSION ".deb"
36 #define OPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-"
37 #define OPKG_PKG_VERSION_SEP_CHAR '_'
39 #define OPKG_STATE_DIR_PREFIX OPKGLIBDIR"/opkg"
40 #define OPKG_LISTS_DIR_SUFFIX "lists"
41 #define OPKG_INFO_DIR_SUFFIX "info"
42 #define OPKG_STATUS_FILE_SUFFIX "status"
44 #define OPKG_BACKUP_SUFFIX "-opkg.backup"
46 #define OPKG_LIST_DESCRIPTION_LENGTH 128
50 OPKG_PKG_DEPS_UNSATISFIED
,
51 OPKG_PKG_IS_ESSENTIAL
,
52 OPKG_PKG_HAS_DEPENDENTS
,
53 OPKG_PKG_HAS_NO_CANDIDATE
55 typedef enum opkg_error opkg_error_t
;
57 extern int opkg_state_changed
;
62 struct errlist
* next
;
65 struct errlist
* error_list
;