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

779 Commits

Author SHA1 Message Date
Aaron Griffin
63000584b6 Implemented a crappy version of -Qu (query upgrades). This simply outputs the
packages to be upgraded in a -Su operation.  Much of the code is duplicated from
sync.c.
TODO: move the implementation to upgrades.c, and reimplement the sync_sysupgrade
function in terms of this:
    trans->packages = alpm_get_upgrades();
2007-02-04 08:26:52 +00:00
Aaron Griffin
b2da4b4234 * Added archive verification when loading package metadata for -u and -A
operations (now aborts on a corrupt archive)
* Fixed the pm_fprintf newline error that was plaguing us.  It seems a line
  resetting 'neednl' was removed a while back (by me).  This causes all the
  output errors we've been seeing
2007-02-04 03:24:32 +00:00
Aaron Griffin
e3c7e92f10 * unified the progress bars (fill_progress function)
* fixed progress output (needs an fflush to move cursor properly)
* broke display_targets function out, to display a list of syncpkgs in
  preparation for a -Qu option
* added get_update_time function to deal with progress functions that shouldn't
  update too fast due to output redraw speeds
2007-02-04 01:36:45 +00:00
Dan McGee
d18259b532 Add newlines to error messages 2007-02-03 07:29:51 +00:00
Dan McGee
c2157cf138 No longer necessary to explicitly specify SRCDEST, leave it up to user to
decide.
2007-02-03 05:23:27 +00:00
Dan McGee
b6483b3cb4 Fix problem with PKGDEST variable not being used correctly. 2007-02-03 05:21:55 +00:00
Dan McGee
da27889687 Updated news file to be more relevant with previous release of pacman;
ommitted many of the bugfixes in 'unreleased' versions, at least on the Arch
Linux end.
2007-02-03 03:46:06 +00:00
Jürgen Hötzel
fc4fe6d689 * fixed clean target: no error if repository files do not exist 2007-02-01 21:46:08 +00:00
Jürgen Hötzel
93b0e76287 * removal of swig generated bindings 2007-02-01 19:47:39 +00:00
Jürgen Hötzel
e70a3e8074 * removal of swig generated bindings 2007-02-01 19:47:39 +00:00
Dan McGee
cdaed9221d * Tried to clean up newline display a bit in the frontend.
* Removed useless buildstring function from util.h; replaced all calls of it
  with list_display.
* Made list_display output 2 spaces instead of 1 between each item.
2007-02-01 06:35:30 +00:00
Dan McGee
8c0a8ddc5b Added mirror in Finland to mirrorlist 2007-02-01 04:12:58 +00:00
Aaron Griffin
616620ad5c * Minor output fix (move colon so it's not part of the URL)
* Added ldconfig on --sync operations too
2007-02-01 03:31:46 +00:00
Aaron Griffin
21e19a7bcf Loading package data from a file was ALWAYS generating the filelist, instead of
using the in-package one. This is now fixed, and an autogenerated one is used as
a last resort.

This fixes the bug where /.CHANGELOG showed up in -Ql.
2007-02-01 03:00:34 +00:00
Aaron Griffin
16e01cfe73 It appears I misunderstood what this bash-ism did 2007-02-01 02:34:03 +00:00
Aaron Griffin
a2bd6d105c Cleaned up some of the metadata control 2007-02-01 02:29:07 +00:00
Aaron Griffin
2e35d8c187 -Ql needs the 'root' prepended to each file 2007-02-01 02:16:13 +00:00
Dan McGee
fafeb32c9d This removes the warning about skipping dependency checking when the user is
either generating the md5sums, repackaging, or just downloading and extracting.

The patch is below.

~ Jamie / yankees26

Signed-off-by: James Rosten <seinfeld90@gmail.com>
2007-02-01 02:12:49 +00:00
Aaron Griffin
4b977d1f2e install scriptlet is _always_ .INSTALL 2007-02-01 02:02:45 +00:00
Aaron Griffin
010f35f299 Move filelist creation ABOVE the other metafiles to keep them out of the list 2007-02-01 01:59:26 +00:00
Aaron Griffin
4cd65c0a31 * !strcmp reads funny (as "not string compare" - switch those to == 0, which has
a positive connotation.
* Added a nice TODO
2007-02-01 01:51:12 +00:00
Dan McGee
55f406fd67 removal of unnecessary '\' in integrity check generation 2007-02-01 01:18:22 +00:00
Aaron Griffin
d97f357f03 Removed the extra newline based on general opinion 2007-01-31 08:30:15 +00:00
Aaron Griffin
21729f0ce4 * Forgot the int->enum header checkin
* Removed the dep-sorting TODO item - switch the sorting to a topological sort
  later (I'll let Dan do the CS stuff, heh)
2007-01-31 08:10:01 +00:00
Aaron Griffin
9a98b6b066 * Make -Qo work on multiple files again
* no real sense in query_fileowner returning an int
2007-01-31 08:00:50 +00:00
Aaron Griffin
290b962c48 Switched an int to an enum 2007-01-31 07:14:50 +00:00
Dan McGee
b23b75e302 just an update 2007-01-31 06:55:40 +00:00
Aaron Griffin
ca1199d719 TODO changes 8) 2007-01-31 06:54:28 +00:00
Aaron Griffin
0adceabe13 Fix corrupt DB entry handling when loading package entries.
* scan loops no longer abort on corrupt entries
* reloading a cache package (and discovering it corrupt) no longer prints 2 messages
  and uses the pre-build "remove from package cache" function

NOTE: The TODOs in there are important for later w.r.t. cleaning up corrupt DB
entries but there are some logical complexities with doing so, so I'm holding
off for now.
2007-01-31 06:48:06 +00:00
Aaron Griffin
670319c2fb Debug logging changes:
* The --debug params were goofy.  New setup allows --debug without params,
  --debug=<level> where level 1=debug output, 2=debug and download output,
  3=debug, download, and function tracing output.  This seems more sane to me.
* Removed PM_LOG_FLOW1 and PM_LOG_FLOW2.  They were just confusing.  When adding
  new functions, it is near impossible to determin if your output should be
  "flow1" or "flow2" without tracking all the way up the call chain.  Rarely
  would one ever say "ok, lets just show "flow2" output.  These have both been
  replaced with PM_LOG_DEBUG
* Removed the need for the root parameter on alpm_initialize. it is now
  defaulted to PM_ROOT just like dbpath and cachedir.  This allows alpm to be
  initialized BEFORE option parsing in the front end, saving us some duplicate
  variables in the frontend.
* Cleaned up front end variables due to early alpm_initialize call.
2007-01-31 06:10:21 +00:00
Aaron Griffin
f4340129d5 More uninitialized stuff... I believe these were removed at some point. Should
be fixed.
2007-01-31 04:42:39 +00:00
Dan McGee
44dc48f10f slight line spacing/indent updates 2007-01-31 02:58:12 +00:00
Dan McGee
c35f713e75 * Refactored some functions to clean up variable declaration.
* Reduced magic number usage by fill_progress function (new).
* Some switch indent fixing.
* Remove use of log10 call.
2007-01-31 01:37:41 +00:00
Dan McGee
2ea88b9ff6 * Updated repo-add script to remove same package, different version when
adding a package to a database. Also added commenting. :)
2007-01-31 00:38:13 +00:00
Jürgen Hötzel
d9b4d3f75c * doxygen check cleanup 2007-01-30 20:37:59 +00:00
Dan McGee
1042eda886 Fixing line spacings of download/install size messages. 2007-01-30 18:25:54 +00:00
Aaron Griffin
2119467392 Well that silly memory clobber was plain old "uninitialized data" - fixed 2007-01-30 08:35:40 +00:00
Aaron Griffin
958a838189 TODO changes 2007-01-30 08:20:15 +00:00
Aaron Griffin
8c73128c77 Turn debug off by default 2007-01-30 08:17:02 +00:00
Aaron Griffin
da648bc24c K. Piche <kevin.piche@cgi.com>
* ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere
2007-01-30 08:14:10 +00:00
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
2efeab1529 adding my personal TODO file 2007-01-30 07:35:51 +00:00
Aaron Griffin
481524cb69 This is a silly script now that a fancy aurbuild is out in the wild (on the AUR,
surprisingly enough, heh)
2007-01-30 06:31:18 +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
358a4a62f3 * fixed path to automake (removed hardcoded version) 2007-01-29 22:30:15 +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