1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
Commit Graph

254 Commits

Author SHA1 Message Date
Aaron Griffin
195e30e8aa K. Piche <kpiche@rogers.com>
* gcc visiblity changes

Also modified _alpm_versioncmp -> alpm_versioncmp (public function) as per K.
Piche's suggestions
2007-01-30 07:47:19 +00:00
Dan McGee
0bc06918e4 * Remove -fno-strict-aliasing as it is now unnecessary to compile.
* Fix up add.c a bit better than it was in regards to FS #3492.
* Optimized the sqrt call in dependency cycle checking to a single call.
* Removal of an outdated comment.
2007-01-30 05:41:13 +00:00
Dan McGee
e668b47142 * Modified info query so it doesn't show more than available when querying a
package file.
2007-01-30 04:15:14 +00:00
Dan McGee
1799afc9c1 Discussed on IRC for a bit, this makes the following changes for clarity:
* alpm_list_is_in    --> alpm_list_find
* alpm_list_is_strin --> alpm_list_find_str
* Flip parameters of both functions to be inline with rest of alpm_list.

First commit, woohoo.
2007-01-30 03:46:33 +00:00
Jürgen Hötzel
13f9fc4d19 * Fix building outside $(srcdir).
* Removed ./gen-mirrorlist.sh invocation from configure script:
  Mirror-files are generated by make, not configure.
2007-01-29 22:18:31 +00:00
Aaron Griffin
1629355ef0 Missed that 8) 2007-01-26 02:19:24 +00:00
Aaron Griffin
e22336673a Dan McGee <dpmcgee@gmail.com>
* Lots of code cleanup, and type fixes
* Make 'makeworld' a bit more in-line with the other stuff
* Make -Si and -Qi operations appear the same
2007-01-26 02:13:16 +00:00
Aaron Griffin
db87c8f62e * copy and paste error, "resolving deps" -> "cleaning up"
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
2007-01-26 01:34:26 +00:00
Aaron Griffin
7f465320e4 Cleanup 'neednl' usage - make it static 2007-01-24 16:57:19 +00:00
Aaron Griffin
170d63190a * Shuffled some of the alpm_list free funtions - still not perfect, but better
* Added alpm_list_remove_node for single list node removal
* Proper error checking/output for failed db_read/db_write (missing files)
* Invalid packages (missing files) are now removed from the package cache
* -Qs and -Ss output now look the same
* config.rpath causes errors on one machine I had, so I added it to CVS
* Fixed a "clobbered memory" issue when installing groups - only the outer list
  should be free'd, not the contained data
2007-01-24 08:51:50 +00:00
Aaron Griffin
1b61cc8c69 This mainly deals with code clarity- removing currently unneeded
optimizations in order to make the code much more readable and
type-checkable. Every enum in the library now has it's own type that
should be used instead of the generic 'unsigned char'. In addition,
several #define statements dealing with constants were converted to
enums.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
2007-01-24 03:02:53 +00:00
Aaron Griffin
8387672053 Removed some debugging cruft left in in the last commit 2007-01-23 20:09:18 +00:00
Aaron Griffin
4db24ca28a * Added some calloc calls to replace the malloc-then-set-to-zero functionality
* Fixed -Ss output so as not to call alpm_list_getdata with a NULl list
* Added a NULL check in alpm_list_getdata
* Fixed alpm_list_add_sorted to properly handle a new / beginning insertions
2007-01-23 01:34:58 +00:00
Aaron Griffin
e1bad6ef84 * Dan McGee <dpmcgee@gmail.com>
Newlines were included in both setting the string
    variable and in the printf, remove the extra ones.
2007-01-22 08:52:18 +00:00
Aaron Griffin
eb03fe80e8 Removed list.h 2007-01-22 08:46:12 +00:00
Aaron Griffin
6167017264 Preliminary checkin for alpm_list conversion
* renamed pmlist_t -> alpm_list_t
* made alpm_list_t a public type (alpm_list.h header)
* removed additional storage for registered DBs in pacman source
* some code cleanup
* removed duplicate (pm)list_display functions from pacman source
* misc code cleanup
2007-01-19 09:28:44 +00:00
Aaron Griffin
bb69613e42 * remove static neednl - no accessor functions (yet)
* remove getcols call in main()
2007-01-18 20:13:34 +00:00
Aaron Griffin
86b136bb59 Dan McGee <dpmcgee@gmail.com>
* Removed some unnecessary headers and library links
* Made things static if possible
* Cleaned up makefiles a bit
* Fixed some old comments in the code
* Fixed some errors the static code checker splint pointed out
* Backwards arguments in a memset call in _alpm_db_read (could have been worse)
* Other various small fixes

Other:
* Default to 80 columns when getcols cannot determine display width
* Removal of ._install as a valid install file in packages
2007-01-18 16:52:57 +00:00
Aaron Griffin
c6f56aee57 Dan McGee <dpmcgee@gmail.com>
* fix for -Qii regression
* package.c cleanup
* some refactoring changes

Moved split_pkgname as per Dan's suggestion
2007-01-17 05:25:32 +00:00
Aaron Griffin
42f8b8b2d3 cvsignore cleanup and additions 2007-01-17 03:40:08 +00:00
Aaron Griffin
3950a5f406 * cosmetic: newline after "local database is up to date" 2007-01-03 15:32:07 +00:00
Aaron Griffin
043a49701f * bug fix FS#6100 - fix --print-uris output 2007-01-03 08:05:13 +00:00
Aaron Griffin
37ae56e140 * Fix a missing slash separator in printed uri 2006-12-29 17:07:34 +00:00
Aaron Griffin
07c1309009 * Removed latest fix from TODO.autoconf
* Attempted fix for FS#6100 - "-Spd foo" failure
* Beginning of refactoring from Dan McGee <dpmcgee@gmail.com>
2006-12-29 17:04:58 +00:00
Aaron Griffin
d59585c24f Column fix when stdout is redirected. Default to 80. 2006-12-28 17:20:41 +00:00
Aaron Griffin
2546a35cd5 Configuration changes:
* Added libdownload check in configure.ac
* Added generation for mirrorlists in pacman.d
    NOTE: autoconf sucks for things like this, so gen-mirrorlist is required

Dan McGee <dpmcgee@gmail.com>:
    * mirrorlist.in file

Roman Kyrylych <roman.kyrylych@gmail.com>:
    * ukrainian mirror

Jürgen Hötzel <juergen@hoetzel.info>:
    * conditional build for pacman.static
2006-12-28 16:54:35 +00:00
Aaron Griffin
d8d8221556 Modified front end output routines to accept a "padding' setting, which pads any
statement with ' ' until the size of the terminal.  The rationale is that, when
a log message is emitted during progress bar display, the terminal is artifacted.
This prevents that messiness.
2006-12-22 07:11:20 +00:00
Aaron Griffin
b308f06a3a * Dan McGee's makepkg updates http://www.archlinux.org/pipermail/pacman-dev/2006-December/000792.html
* configure fixes (CFLAGS)
* no-strict-aliasing hacks until full C99 compliance
* --with-config-file configure option
2006-12-14 05:23:08 +00:00
Aaron Griffin
716e9ef095 A few minor updates so --root works again. 2006-12-08 08:17:41 +00:00
Aaron Griffin
fc361cc111 Removed an extra call to alpm_option_set_root() - it is set by alpm_init() 2006-12-08 07:21:38 +00:00
Aaron Griffin
6ca24d5924 Changed upgrade message to use the term "installation" to make the meaning more
clear
2006-12-05 08:39:32 +00:00
Aaron Griffin
aad3f6ab1f Changed "Total Uncompressed Size" to "Total Installed Size" 2006-12-05 07:11:27 +00:00
Aaron Griffin
8028a1124a Added dbpath validation 2006-12-05 06:55:52 +00:00
Aaron Griffin
4488058900 * Fixed the bug where -R pkgA pkgB failed when pkgA depended on pkgB 2006-12-01 09:51:54 +00:00
Aaron Griffin
08dca1593f * Cosmetic changes and typo fixes
* IgnorePkg and --ignore work again
* Partial changes to support removal of conflicts for -U and -A (INCOMPLETE)
2006-12-01 09:32:29 +00:00
Aaron Griffin
6c68723905 * cosmetic: double space in "full system upgrade" 2006-11-27 15:44:22 +00:00
Aaron Griffin
12fdce244c * Move sync *after* transaction init (lock file). We don't want to stomp on the
databases while another instance of pacman /could/ be reading them.
2006-11-23 02:42:50 +00:00
Aaron Griffin
07b0092736 -std=c99 seems to undefine PATH_MAX in this case. I don't care enough to fix it
at the moment, so this workaround works.
2006-11-23 02:36:26 +00:00
Aaron Griffin
8da03650b0 * Whoops util Makefile
* Slight modification to depcmp debug output
2006-11-22 20:03:52 +00:00
Aaron Griffin
986409f9bd * Completed getinfo api changes (pmmissing_t, pmtrans_t, etc)
* Modified some dependancy checking
* Changed "performing local database upgrade" message to be more clear
* Change 'usize' to 'isize' in database files
* Scriptlet output is now sent to pacman's log file
* Limited some debugging output to be more clear
2006-11-22 09:03:41 +00:00
Aaron Griffin
5469177183 Removed global maxcols - it is looked up on the fly now, so the progress bar is
resized.  Also used ioctl in place of the COLUMNS env variable
2006-11-22 04:53:10 +00:00
Aaron Griffin
99d0c00246 * Fixed a double free which happened in 2 cases in --sync 2006-11-22 03:51:06 +00:00
Aaron Griffin
cb65f08d2f libalpm appends the trailing / to the config root, no need to do it here 2006-11-20 22:15:26 +00:00
Aaron Griffin
aa1c0ba9f8 * repo-add script - to add entries to a db file directly from package data (no PKGBUILD)
* libalpm api changes - move from a _getinfo(p, WHAT_WE_WANT) scheme to a
  typesafe _get_what_we_want(p) scheme [not 100% complete yet]
* some const correctness changes
* removal of PM_* types in alpm.h in favor of the pm*_t types used throughout
  libalpm
2006-11-20 09:10:23 +00:00
Aaron Griffin
3d6242ed74 * makepkg.conf.in variable changes (missed the checkin)
* Better error reporting when unpacking an archive fails
* Fixed -Sc and -Scc cache dir opening/reading
2006-11-16 17:24:41 +00:00
Aaron Griffin
00ce9ea739 * Initial changes to gensync - makepkg changes were not checked in from another
machine - still pending
* Addition of _alpm_pkg_makefilename to simplify the with/without -ARCH prefix
  scheme we're going with for the interim
2006-11-15 07:50:37 +00:00
Aaron Griffin
74e780f25d * has_archname additions
* additional newline for search output, as suggested on the forums
2006-11-14 21:53:45 +00:00
Aaron Griffin
eb514bee96 * autotool fixes
* Renamed "download" files to "downloadprog" as it only holds the progress bar
  and to not confuse (myself) with <download.h>
2006-11-14 08:07:57 +00:00
Aaron Griffin
4470e5ce01 * Numerous mini valgrind fixes.
* Addition of hacky architecture check in the _splitname function
* Removal of libfetch from the archlinux proper - it has been renamed to
  libdownload and can be found at http://phraktured.net/libdownload
* Merge of _some_ of the Frugalware makepkg change - this may still be
  incomplete
* Removal of libftp from cvs proper
* PKGBUILD manpage now says 'PKGBUILD' instead of FrugalBuild (he he)
2006-11-14 07:58:42 +00:00
Aaron Griffin
734e077996 Skip root check on -Sp 2006-11-10 20:09:59 +00:00