summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2007-06-09Add a series of pm_printf functions to pacman frontendDan McGee3-7/+86
Add pm_printf, pm_fprintf, and pm_vfprintf to the pacman frontend for use by debug printing and other output messages from pacman. These will be incorporated into the log callback functions in the next iteration of changes. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-09makepkg: Make it possible to create an empty packageRoman Kyrylych1-2/+2
Signed-off-by: Roman Kyrylych <roman@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-09mirrorlist: Add Brazilian mirrorDan McGee1-0/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05Const correctness!Dan McGee22-137/+146
Add some 'const' keywords all over the code to make it a bit more strict on what you can and can't do with data. This is especially important when we return pointers to the pacman frontend- ideally this would always be untouchable data. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05Clean up unnecessary headers and macros from alpm.cDan McGee1-10/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05Fix compilation with GCC 4.2.0Dan McGee1-1/+1
'inline' keyword in C99 is not correctly recognized, so compilation fails on the warning it spits. This fixes this. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05Merge branch 'alpm.c_cleanup' into frontend_configDan McGee12-913/+889
Conflicts: lib/libalpm/alpm.c
2007-06-05Fix up outstanding parseconfig issuesDan McGee4-19/+31
The db variable was left unset when calling alpm_db_register, leading to a failure to ever register a sync db. Also added a check to ensure DBPath was set when trying to register a database. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05Rip alpm_parse_config out of libalpmDan McGee12-303/+48
Switch over to the new frontend parseconfig. * Fix a few issues in parseconfig * Remove unused callback upon database registration * Remove conf file related errors from error.c/alpm.h Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05Move three config options out of the backendDan McGee2-3/+7
Move chomp, usecolor, and showsize out of the backend and into the pacman frontend as they are pacman-specific options and not related to the behavior of libalpm. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05Add a parseconfig to the pacman frontend that compilesDan McGee5-28/+298
Warning: this compiles but may not work as intended quite yet. :) Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05Move functions out of alpm.c to where they belongDan McGee12-913/+890
alpm.h is the only "publically viewable" file, so there is no reason to have functions in alpm.c that belong in package.c, db.c, etc. Move the functions where they belong and leave only the library init functions in alpm.c. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05Autotool clean up.Andrew Fyfe12-36/+58
* Add vim modeline to Makefile.am and configure.ac * Fix white space in Makefile.am and configure.ac * Add contrib/wget-xdelta.sh to EXTRA_DIST in Makefile.am Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05scripts/makepkg.in: Add gettext translation for WARNING and ERROR.Andrew Fyfe1-4/+4
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-05contrib/wget-xdelta.sh: Replaced with an improved version.Andrew Fyfe1-44/+67
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-05scripts/makepkg.in: Fix version comparision in create_xdelta().Andrew Fyfe1-12/+20
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-05scripts/abs.in: Rearrange/Cleanup.Andrew Fyfe2-54/+111
* Rearrange the script. * Add gettext support. * Clean up usage message. * Add PACKAGE_BUGREPORT to substitution in scripts/Makefile.am Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05Update Polish TranslationJaroslaw Swierczynski1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Fix pacman-optimize autoconf pathsDan McGee2-6/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Remove hardcoded defines from libalpmDan McGee8-19/+12
Remove any use of the former path variables defined by the Makefiles or config.h. These are now runtime configurable only with pacman.conf (or by using flags on the command line). Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Start moving hardcoded paths out of libalpmDan McGee3-14/+11
Move the defaults for RootDir, CacheDir, DBPath, and LockFile into pacman.conf, just as LogFile was done before. Add a section to alpm_parse_config to look for a LockFile directive. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Add five new pactest tests where pacman currently failsNagy Gabor5-0/+109
Most of these new tests deal with provisions upon sync or upgrade being changed by packages, and pacman not being smart enough to deal with it yet. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Add gettext/i18n to most of the currently-used scriptsGiovanni Scafora7-132/+151
Signed-off-by: Giovanni Scafora <linuxmania@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04makeworld: var rename from version -> myverDan McGee1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04scripts/makepkg.in: More clean up.Andrew Fyfe1-12/+21
* Add ChangeLog to source package. * Quote references to $BUILDSCRIPT. * Check $srcdir isn't empty when running --noextract. * Check $pkgdir isn't empty when running --repackage. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04scripts/makepkg.in: Improve error handling and clean up on exit.Andrew Fyfe1-19/+50
* makepkg now runs with errexit (exit on syntax error) enabled for the whole script. * Removed unneeded setting of errexit around build(). * Added bash traps to catch TERM HUP INT signals. * Added trap to catch unhandled/unknown errors. * Added trap to call clean_up() when the script exits. * Moved call to remove_deps() into clean_up(). * Moved -c/--clean code into clean_up(). Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Clean up output messages for translation.Andrew Fyfe1-40/+54
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-04scripts/makepkg.in: Rewrite check_{options,buildenv} to tidy them up.Andrew Fyfe1-49/+79
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-04scripts/makepkg.in: Clean up.Andrew Fyfe1-44/+36
* Move create_xdelta() outside of fakeroot run. * Clean up dep check functions. * Clean up extract_sources(). Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Correct descriptions of configure optionsRoman Kyrylych1-7/+7
Signed-off-by: Roman Kyrylych <roman@archlinux.org> Signed-off-by: Dan McGee <dpmcgee@gmail.com>
2007-06-02Rename functions in makepkg for consistencyDan McGee1-17/+17
Add a hyphen to any function name that needs it so we are consistent across the board. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-02makepkg: fix create_xdelta() and add warningAsh Milsted1-11/+12
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-02scripts/makepkg.in: Some more clean ups.Andrew Fyfe1-7/+4
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-02makepkg: code cleanupDan McGee1-23/+14
* Collapse some if statements (Andrew Fyfe) * Add some E_ exit designations Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-02scripts/makepkg.in: Move the remaining stages into functions.Andrew Fyfe1-165/+195
* Move download code to download_sources() * Move checksum generation code to generate_checksums() * Move checksum check code to check_checksums() * Move extract source code to extract_sources() Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-02scripts/makepkg.in: All calls to eval_gettext have been remove, gettext.sh ↵Andrew Fyfe1-2/+1
is no longer needed. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-02Remove freespace checking codeDan McGee4-100/+0
This code depends on /etc/mtab existance, which is not very reliable in all cases, especially in a chroot or non-Linux environment. Dump it for now until we can find a better way. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-02Move parts of pacman_query into subfunctions (query_search, query_group, ↵Chantry Xavier2-193/+248
query_isfile) Clean up pacman_query so functionality is actually in functions, similar to how sync.c is organized. After doing this, it is easy to see similarity in the code between sync.c and query.c, so we should be able to consolidate some of this. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01Drop --usesudo option and add some checks related to ASROOTDan McGee2-33/+37
Drop the --usesudo option and use it by default if running as a non-root user. Check the usage of the --asroot option and do not allow it to be used as a normal user. A few other small fixes, including a typo in $confdir. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01scripts/makepkg.in: Clean up gen/check checksum code.Andrew Fyfe1-68/+67
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01scripts/makepkg.in: Various clean ups.Andrew Fyfe3-32/+35
* etc/makepkg.conf.in: Add description for xdelta. * doc/makepkg.conf.5: Add description for xdelta. * scripts/makepkg.in: Various clean ups. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01Cleaned up dependencies check functions in makepkgAndrew Fyfe1-104/+94
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01Change -z|--showsize flag to ShowSize pacman.conf optionNathan Jones10-22/+30
Also cleaned up some duplicate printf lines related to the ShowSize option. Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01Updated Spanish TranslationJuan Pablo González T1-317/+151
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01Add Andrew to the authors listDan McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01FS7319: Add option to disable the inclusion of abs script.Andrew Fyfe3-2/+25
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-31alpm_parse_config(): ignore #.*$, not just ^#.*$VMiklos1-0/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-31Add autotool substitution for SRCEXT.Andrew Fyfe4-2/+13
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-31Autotool fixes/cleanup.Andrew Fyfe3-7/+10
* configure.ac: Add AC_SUBST() for ROOTDIR, PKGEXT, DBEXT so they get exported to Makefiles. * {makepkg,pacman}.conf.in: Remove extra / from paths. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-31Move DB and cache dirs away from there dependence on ROOTDIRDan McGee25-143/+142
This change allows us to use all autoconf specified paths, most notably $(localstatedir). It is quite a change and touches a lot of files, as all references to the DB and cache were done with the ROOTDIR as a prefix. * add --lock command-line option to pacman to specify the location of the lockfile (this can now be specified at configure time by setting the $localstatedir path). * Rip quite a few settings out of configure.ac as they are now picked by setting the paths during configure or make. * Fix bug with /tmp fallback for sync downloads not working correctly (related to root location, now the system tmp dir is used). * Simplified the parameters to some libalpm functions, and added get/set for the new lockfile option. * Renamed several of the DEFS to names without the PM_ prefix. Signed-off-by: Dan McGee <dan@archlinux.org>