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
8b11dd50eb
James Rosten <seinfeld90@gmail.com>
...
* attempt to unlink file AFTER moving to .pacsave always fails
2007-01-23 16:05:21 +00:00
Aaron Griffin
0e0738617b
James Rosten <seinfeld90@gmail.com>
...
* noextract PKGBUILD option to NOT extract source files
- implemented with existing in_array function
2007-01-23 16:02:37 +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
2a8b835dda
Lowercase "changelog" in output message
2007-01-22 19:26:23 +00:00
Aaron Griffin
10b8585c21
Rename Changelog -> ChangeLog (the standard way of casing a ChangeLog)
2007-01-22 17:53:56 +00:00
Aaron Griffin
000256cbc5
* Added a check for .FILELIST for package validity in addition to .PKGINFO
2007-01-22 16:16:51 +00:00
Aaron Griffin
0635e03869
Changelog support for makepkg - this has been in pacman itself for some time,
...
but I don't know why I never crammed the changes for makepkg in.
* Adds a "Changelog" file next to a PKGBUILD as part of the package
(viewed with pacman -Qc)
2007-01-22 09:57:20 +00:00
Aaron Griffin
c19839695b
Introduced an infinite loop during the pmlist -> alpm_list transition, whoops
2007-01-22 09:27:00 +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
7ed7977e63
makepkg file-type detection changes from James Rosten <seinfeld90@gmail.com>
...
and Johannes Weiner <hannes@saeurebad.de>
This should fix FS#6246
2007-01-22 08:45:12 +00:00
Aaron Griffin
35a9f3e7d0
Moved some decls to make the "pkg_invalid" patch compile again.
2007-01-19 23:44:50 +00:00
Aaron Griffin
77f6bcfa3d
Whoops. There's a 0 where there should be a 1.
2007-01-19 18:06:37 +00:00
Aaron Griffin
d27e5efec9
Johannes Weiner <hannes@saeurebad.de>
...
* package cleanup (pkg_invalid) refactoring
2007-01-19 18:05:19 +00:00
Aaron Griffin
e310209296
Johannes Weiner <hannes@saeurebad.de>
...
* use calloc to zero-out new packages (far more ideal)
* use memcpy to copy primatives when copying package structures
2007-01-19 18:01:02 +00:00
Aaron Griffin
66cfa9826e
Added some things I noticed when making alpm_list changes, but didn't want to change too much at once.
2007-01-19 17:42:58 +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
6d6ab5ed18
Blah blah commit message for testing cvslog -> email
2007-01-18 20:58:03 +00:00
Aaron Griffin
11645d4d80
*** empty log message ***
2007-01-18 20:46:41 +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
37b83a7401
Some confusion with variable names in unlink_file caused unlink to try and find the _relative_ file instead of absolute. The absolute path name has also been used in some of the output there too.
2007-01-18 17:04:25 +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
46e26ac5c8
Dan McGee <dpmcgee@gmail.com>
...
* fix "warning: dereferencing type-punned pointer will break strict-aliasing rules"
2007-01-18 16:09:34 +00:00
Aaron Griffin
f6a76dac12
Added strerror() output on unlink failure
2007-01-18 16:04:05 +00:00
Aaron Griffin
1bea7706ae
* Misc logging changes
...
Addition of a forced fflush in an attempt to diagnose mutli-logging
Removal of varargs from the internal logaction function, they are handled in
alpm_logaction just fine
2007-01-17 07:21:07 +00:00
Aaron Griffin
aea6626fde
Dan McGee <dpmcgee@gmail.com>
...
* 'unset' fixes
* typo in "dependecy"
* indent fixes
2007-01-17 05:29:54 +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
31e0561865
Roman Kyrylych <Roman.Kyrylych@gmail.com>
...
* dependency removal fixes and refactoring
2007-01-17 04:54:55 +00:00
Aaron Griffin
803f92b6a6
James Rosten <seinfeld90@gmail.com>
...
* _alpm_remove_commit refactoring
* clean up/fixes by Dan McGee <dpmcgee@gmail.com>
2007-01-17 04:47:19 +00:00
Aaron Griffin
726e90dc2c
Jürgen Hötzel <juergen@hoetzel.info>
...
* avoid repeated regex compilations (regex for search string do not
change while scanning the package database)
* remove needless string duplication (regex function do not change target
string nor free them)
* code cleanup
This patch improves search performance:
bash-3.2$ time ./src/pacman/pacman.static.old -Ss "(database|web).*server" >/dev/null
real 0m1.026s
user 0m0.544s
sys 0m0.208s
bash-3.2$ time ./src/pacman/pacman.static -Ss "(database|web).*server" >/dev/null
real 0m0.777s
user 0m0.456s
sys 0m0.128s
bash-3.2$
2007-01-17 03:57:53 +00:00
Aaron Griffin
2e352141d7
James Rosten <seinfeld90@gmail.com>
...
* rankmirrors addition of single url testing
2007-01-17 03:48:02 +00:00
Aaron Griffin
42f8b8b2d3
cvsignore cleanup and additions
2007-01-17 03:40:08 +00:00
Aaron Griffin
8d2f00c059
Added Jamie (yankees26)
2007-01-11 20:30:58 +00:00
Aaron Griffin
4a7351c77a
*** empty log message ***
2007-01-11 20:05:13 +00:00
Aaron Griffin
2a457c5319
* Jrgen Htzel <juergen@hoetzel.info>
...
_alpm_db_load_pkgcache: use mergesort to improve performance
2007-01-11 17:44:39 +00:00
Aaron Griffin
2ae56f4bc9
* Dan McGee <dpmcgee@gmail.com>
...
remove configure check for bzip2
2007-01-11 17:34:51 +00:00
Aaron Griffin
244fb2a264
* Dan McGee <dpmcgee@gmail.com>
...
Documentation cleanup
2007-01-11 17:32:49 +00:00
Aaron Griffin
c7139c4b78
* James Rosten <seinfeld90@gmail.com>
...
Cleanup and fixes from last patch
Fix some tar error conditions
* Dan McGee <dpmcgee@gmail.com>
USECOLOR from rc.conf
2007-01-11 17:22:21 +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
50030f778a
* Bug fix FS#6058
...
properly remove entries from "Required By" instead of wiping it out entirely
2007-01-03 06:13:08 +00:00
Aaron Griffin
65e086e0e3
*** empty log message ***
2007-01-03 05:45:29 +00:00
Aaron Griffin
64e2eba268
* James Rosten <seinfeld90@gmail.com>
...
FS#5009 fixes - use tar on the pacman DB so as to handle cases where the
base directory cannot be 'mv'ed and other such edge cases.
2007-01-03 05:45:18 +00:00
Aaron Griffin
86c8300924
* Added instructions for patch submission
2007-01-02 23:48:36 +00:00
Aaron Griffin
61d03cc345
* Missing error label in sync.c
...
* Additional debug output for db_write
2007-01-02 22:29:48 +00:00
Aaron Griffin
776a45ce7c
* James Rosten <seinfeld90@gmail.com>
...
Makepkg dep removal on failure FS#5923
2007-01-02 16:34:50 +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