scripts/library: add README file
[pacman-ng.git] / TODO.dan
blobee8f7404155438b110a9738e41440283902b55ea
1 TODO.dan
2 ========
4 This is my personal TODO list. No guarantees if it is out of date and things no
5 longer apply. If you want to help out with any of it, send me an email.
7 Pacman 3.1:
8 -----------
10 Downgrade feature - allow users to see cached packages and downgrade to
11 (previous or any?) available options.
13 Extreme similarity between some of the sync and add code...we have to be able
14 to abstract more away from sync actions and add actions to just 'actions'
15 (example: sync,c, add.c, and deptest.c all contain a switch on PM_DEP_MOD_*).
16 Merge update, add, and sync code when possible, so we reduce duplication.
18 Review progress/transaction event subsystem. (from TODO)
20 Add Doxygen comments to every function in libalpm including private functions.
21 Ensure functions are doing exactly their purpose and nothing more. Find
22 functions that perform duplicate behavior and merge them. Combine and refactor
23 others. Delete unnecessary functions. Stop keeping everything clustered in
24 little add/sync/remove parts, allow transactions to share code.
26 Go through options list. Decide if namings are good, all options are still
27 relevant, etc. Ideas for -Re (#6273), changing meaning of -c (has two meanings,
28 another FS bug), etc. Remove the -A flag and possibly -D, -T, and -Y (-Y is
29 killed now in favor of vercmp binary) if they can be done by other actions.
30 Possible switch of -U --> -I (#5571).
32 Review display and logging functions. There seems to be an abundance of them.
33 Make it extensible to use color, review what verbose/debug means. Perhaps
34 separate logging functionality- Pacman has its normal log, and alpm backend
35 keeps a very simple log file - listing only adds (including syncs) and removes.
36 This way a consistency list can be kept of what is currently installed and what
37 isn't, without all the logging junk from the front end.
39 Profile the code. Find the functions that are being called a lot, and see what
40 can be done about it. Find out if all these calls are necessary (e.g. excessive
41 alpm_list_count calls), and maybe think about changing data structures to speed
42 operations up (e.g. a 'count' field). NOTE: already found two huge issues with
43 quick profiling- excessive setlocale calls, and extremely excessive strcmp
44 calls.
46 Fix other localized issues- use non-printf when necessary. We may need to use
47 some wchar_t output on the progress bar as char/byte counts differ here. Sizes
48 of packages (e.g. 10,400.23 MB) should all be localized with correct
49 seperators.
51 Rewrite makepkg to use terminal-safe coloring/bolding. tput utility should
52 allow us to do this. Make universal message functions for systemwide use,
53 including all pacman utilites- abs, pacman-optimize, etc.
55 Bugs/FRs to smash: 6468, 6437, 6430?, 6420, 6404, 6389, 6312?, 6284, 6273?,
56 6255?, 6208, 5987, 5885, 5571, 4182, 3492, 2810?, 1769, 1588, 1571
58 Update doxygen comments, they may need some work. Try to document all of the
59 private internal functions too- it helps a ton for people just getting a
60 start on pacman hacking.
62 Other smaller things:
63 ---------------------
65 unsigned int vs. unsigned- determine a standard and stick with it
67 FS #4185 - move where message is logged, perhaps?
69 Update copyrights (2007)
71 Update pacman website, and add/finish pacman coding style page
73 Refine makepkg error codes. Each kind of failure could have its own code:
74   --package already built
75   --failed integ checks
76   --failed build
77   --etc.
79 Revamp the downloadprog function a bit. Seems kind of messy.
81 --print-uri option to sync should not require saying yes or no to up to date
83 Build a replacement for this, or at least standardize its use. We shouldn't
84 always need to pass handle->root around, it is constant. Something like char*
85 buildpath(file).
86         /* build the new entryname relative to handle->root */
87         snprintf(filename, PATH_MAX, "%s%s", handle->root, entryname);
89 Random ideas:
90 -------------
92 Possibly split utilities/extras from pacman package
94 Make .indent.pro file for GNU indent (started, but didn't finish)