jbj
3ad99fcba5
- add cscope/ctags (Rodrigo Barbosa<rodrigob@conectiva.com.br>).
...
- remove getMacroBody() from rpmio API.
- hide libio lossage in prototype, not API.
lclint annotations.
CVS patchset: 4230
CVS date: 2000/10/28 17:16:25
2000-10-28 17:16:25 +00:00
jbj
c7b24dad58
- translate rpm.8 man page (Peter Ivanyi <ivanyi@internet.sk>).
...
Doxygen annotations.
CVS patchset: 4146
CVS date: 2000/08/29 22:04:33
2000-08-29 22:04:33 +00:00
jbj
f8b364d7a8
Doxygen annotations.
...
CVS patchset: 4132
CVS date: 2000/08/27 19:27:03
2000-08-27 19:27:03 +00:00
jbj
db3190176b
- prefix payload paths with "./", otherwise "/" can't be represented.
...
- fix: compressFilelist broke when fed '/'.
- fix: typo in --last popt alias (#12690 ).
- fix: clean file paths before performing -qf (#12493 ).
CVS patchset: 3930
CVS date: 2000/07/09 23:10:25
2000-07-09 23:10:25 +00:00
jbj
b856c8b207
- add optflags for i486 and i586.
...
- fix: segfault with legacy packages missing RPMTAG_FILEINODES.
CVS patchset: 3814
CVS date: 2000/06/05 14:18:40
2000-06-05 14:18:40 +00:00
jbj
dcbbd47217
Split popt glue into lib/popt{BT,QV}.c.
...
Add dependencies to *.la.
CVS patchset: 3787
CVS date: 2000/06/01 04:47:42
2000-06-01 04:47:42 +00:00
jbj
5807d4262e
Remove build modes from rpm, use rpmb and/or popt glue instead.
...
CVS patchset: 3754
CVS date: 2000/05/26 18:51:11
2000-05-26 18:51:11 +00:00
jbj
23ce7cf4cd
add calculated nlink field to -qlv output (like ls -al).
...
CVS patchset: 3730
CVS date: 2000/05/16 18:32:49
2000-05-16 18:32:49 +00:00
jbj
2cf5b85fa1
fix: (segfault) verify needs rpmdb while query does not.
...
CVS patchset: 3729
CVS date: 2000/05/16 17:10:13
2000-05-16 17:10:13 +00:00
jbj
764e820f16
Repair rebuilddb lossage, removing debug messages and final copy on user msgs.
...
Initialize dbN vector from dbNopen.
Use db3 return convention for dbNopen.
Always save tag index in join key.
Rename rpmdbAppendIteratorMatches -> rpmdbAppendIterator.
Remove tolerant from rpmdbRemove API.
Use hdrNum rather than offset, tagNum rather than fileNumber most everywhere.
rpmdb.c: Create rpmdbPruneIterator to exclude items from set.
rpmdb.c: Remove legacy code from rpmdbAdd/rpmdbRemove.
rpmdb.c: Rename (shorten) many routines.
tagName.c: prepare for ADDED/REMOVED/AVAILABLE temorary databases.
depends.c: use rpmdbPruneIterator.
depends.c: don't check ranges unless provides names match.
depends.c: Depends now works (watch out for data values of 0).
rpmpopt.in: Add --dbapi and --rebuilddbapi options.
CVS patchset: 3720
CVS date: 2000/05/07 00:53:11
2000-05-07 00:53:11 +00:00
jbj
113948c75c
Sanity and API clean up. (make dist)
...
CVS patchset: 3705
CVS date: 2000/04/27 01:11:48
2000-04-27 01:11:48 +00:00
jbj
24a64f2739
- API: replace rpmdbUpdateRecord with rpmdbRemove/rpmdbAdd.
...
- API: replace rpmdbFindByLabel with RPMDBI_LABEL iteration.
- API: replace rpmdbGetRecord with iterators.
- API: replace findMatches with iterators.
CVS patchset: 3704
CVS date: 2000/04/27 00:10:28
2000-04-27 00:10:28 +00:00
jbj
b5cadb90d6
make db indices as lightweight as possible, with per-dbi config.
...
db1.c will never be needed, eliminate.
API: merge rebuilddb.c into rpmdb.c.
CVS patchset: 3694
CVS date: 2000/04/23 20:37:57
2000-04-23 20:37:57 +00:00
jbj
f75d794af4
Change iterator interface to use RPMTAG_FOO rather than RPMDBI_FOO.
...
CVS patchset: 3687
CVS date: 2000/04/19 22:15:02
2000-04-19 22:15:02 +00:00
jbj
db11adf6e8
Remove DYING code.
...
CVS patchset: 3670
CVS date: 2000/04/12 16:30:46
2000-04-12 16:30:46 +00:00
jbj
f3571adf59
API: pass *SearchIndex() length of key (0 will use strlen(key)).
...
API: remove rpmdb{First,Next}RecNum routines.
db3.c: remove cursor DB_RMW implementation, something else is needed.
rpmdb.c: first crack at rpmdb match iterator.
query.c: ditto.
rebuilddb.c: ditto.
dumpdb.c: ditto.
CVS patchset: 3668
CVS date: 2000/04/12 13:42:57
2000-04-12 13:42:57 +00:00
jbj
c2ced00559
Permit dboffsets in hex and octal.
...
CVS patchset: 3658
CVS date: 2000/04/04 09:27:48
2000-04-04 09:27:48 +00:00
jbj
cab176172b
- API: change dbi to pass by reference, not value.
...
- cram all of db1, db_185, and db2 interfaces into rpmlib.
CVS patchset: 3636
CVS date: 2000/03/23 15:49:50
2000-03-23 15:49:50 +00:00
jbj
becec721d0
i18n lookaside.
...
CVS patchset: 3581
CVS date: 2000/02/23 17:34:41
2000-02-23 17:34:41 +00:00
jbj
b89ccd9be6
Disable i18n lookaside for now.
...
CVS patchset: 3564
CVS date: 2000/02/16 19:10:42
2000-02-16 19:10:42 +00:00
jbj
277645f5b0
Implementation of i18n look-aside, no-op'ed for now.
...
CVS patchset: 3555
CVS date: 2000/02/13 19:23:55
2000-02-13 19:23:55 +00:00
jbj
292b9f10be
lib/rpminstall.c: Perform glob on remote ftp install args.
...
lib/misc.[ch]: Rename remoteGlob to rpmGlob. Preserve glob_error behavior.
build/files.c: Ditto.
lib/rpmio.c: Collapse ftpFileDesc() into ftpReq().
lib/rpmio.c: Eliminate all uses of u->path.
lib/url.c: Ditto.
lib/url.c: Tweak url cache code to reuse empty slots (never happens).
CVS patchset: 3478
CVS date: 1999/12/12 17:46:22
1999-12-12 17:46:22 +00:00
jbj
b438e61808
perform glob on remote ftp queries.
...
fix: ftpAbort must close the data channel to read abort status.
CVS patchset: 3477
CVS date: 1999/12/12 01:46:13
1999-12-12 01:46:13 +00:00
jbj
bd109d5df5
rename new FILENAMES tags to BASENAMES/DIRNAMES/DIRINDEXES.
...
CVS patchset: 3466
CVS date: 1999/12/08 19:04:50
1999-12-08 19:04:50 +00:00
jbj
7e8b64d335
permit --whatprovides to lookup file dependencies.
...
CVS patchset: 3451
CVS date: 1999/12/02 16:31:35
1999-12-02 16:31:35 +00:00
jbj
4e56943831
lib/install.c: Check errno and mkdir specdir/sourcedir only for local fs.
...
lib/rpmio.c: Create ftpOpen/httpOpen from ufdOpen case's.
lib/rpmio.c: ftpStat et al uses ftpOpen and NLST w/o path.
lib/query.c: Don't Fclose(fd) if fd == NULL.
CVS patchset: 3442
CVS date: 1999/11/30 14:49:45
1999-11-30 14:49:45 +00:00
jbj
f202d104d0
Consistent usage for fileNames, baseNames, dirNames and dirIndexes throughout.
...
rpm.c: Add --nodirtokens and --dirtokens to control file list compression.
lib/misc.c: Default (conservative) valuse _noDirTokens is TRUE.
lib/misc.c: Add expandFileList analogue to compressFileList.
build/pack.c: Compress file list only if compression is requested.
lib/rpmdb.c: Expand file list before headerWrite if compression not requested.
CVS patchset: 3436
CVS date: 1999/11/26 21:58:42
1999-11-26 21:58:42 +00:00
jbj
e0b1d0be36
Swap 2nd and 3rd arg to Fread/Fwrite to preserve read/write type return.
...
Use Fstrerror to retrieve fd->syserrno.
Make ftpFileDoneNeeded per-fd rather than per-url.
Make data fd unique rather than per-url.
Use appropriate protocol commands for ufdio writing.
CVS patchset: 3421
CVS date: 1999/11/10 22:09:49
1999-11-10 22:09:49 +00:00
jbj
aeab1e959d
fix: typo in error message ( #6858 ).
...
tufdio.c: Create.
rpmurl.h: Add ctrl, data, buf, and bufAlloced to urlinfo. UFDSANE assertion.
rpmio.h: Add fdWritable(), fdReadable(), fdRdline(), exported (for now) to
ftp.c checkResponse().
ftp.c: checkResponse() rewritten to use above.
ftp.c: checkResponse() handles html in 501 response on closed http connection.
ftp.c: ftpCommand() rewritten to simplify (using stpcpy).
ftp.c: httpOpen() now reopens time-out persistent connection.
ftp.c: Get rid of O_NONBLOCK reads, not necessary AFAICT.
ftp.c: ftpFileDesc() uses u->data rather than passed in fd arg.
Use a consistent refcounting scheme to achieve persistent malloc and open ctrl.
query.c: get ready for Remglob().
rpmio.c: ftpCmd() functional (using tufdio).
CVS patchset: 3420
CVS date: 1999/11/09 20:57:38
1999-11-09 20:57:38 +00:00
jbj
3363604c70
Use Fopen almost everywhere.
...
Rip out --enable-bzip2-payload, we'll use Fopen w macros instead.
Work out ref counting for ftpControl so that control channel is persistent.
build/build.c: Use fpio to write build stage script.
parseSpec.c: Rework include stack to use FD_t, not FILE *.
tread.c: Delete, use ufdio->read instead.
rpmio.c: Filter out fdio fd == NULL assertion failures.
rpmrc.c: Don't fail if HOME is not environment.
rpmrc.c: Rework ufdio FTP rcfile I/O to be more similar to stdio.
CVS patchset: 3417
CVS date: 1999/11/04 21:26:08
1999-11-04 21:26:08 +00:00
jbj
7fc3a97733
Add ref/deref/new/fileno/open vectors to FDIO_t.
...
Hide fdOpen/ufdOpen, use {fdio,ufdio}->open throughout.
url.c: Create ref counted abstract urlinfo type with debugging.
url.c: Rename functions to urlNew/urlFree/urlFreeCache for consistency.
rpmio.c: Create ref counted abstract FD_t type with debugging.
rpmio.c: Create private struct _FD_s type.
cpio.c: Create fd[GS]etCpioPos to preserve FD_t abstraction.
CVS patchset: 3414
CVS date: 1999/11/02 14:33:14
1999-11-02 14:33:14 +00:00
jbj
b57249fd5e
Spec: Add rootdir (as in chroot).
...
parseSpec(): Pass rootdir argument.
rpm.c: Rework bigMode enum to simplify per-mode option checks.
build/build.c: Attempt a chroot before execl().
falloc.c: thinko: test for non-existent packages database was broke.
makeTempFile(): Skip possible URL leader on tempfile name expansion.
rpmio.c: Mkdir/Chdir/Rmdir/Rename/Chroot/Unlink syscall wrappers.
rpmdb.c: Coalesce and simplify legacy openDatabase() wrappers.
uninstall.c: Skip possible URL leader on chroot arg.
CVS patchset: 3409
CVS date: 1999/10/31 21:38:21
1999-10-31 21:38:21 +00:00
jbj
2b84d36c2e
Make fdFileno() static, use Fileno()/Ferror() analogues throughout.
...
Make ufdClose() static, use Fclose() with ufdio cookie throughout.
rpm.c: Clean urlinfoCache and rpmBuildArgs leaks.
url.c: urlIsURL() should be here, not in rpmio.c.
url.c: Preserve FD_t abstraction by creating ufdGetUrlinfo().
url.c: Create freeUrlinfoCache().
rpmio.c: Create ufdio cookie.
CVS patchset: 3407
CVS date: 1999/10/30 16:43:29
1999-10-30 16:43:29 +00:00
jbj
8ef4ebd133
Use xmalloc/xstrdup rather than malloc/strdup.
...
CVS patchset: 3377
CVS date: 1999/10/08 16:38:33
1999-10-08 16:38:33 +00:00
ewt
4cfb2f8d63
first steps toward getting compressed file lists to work -- most things
...
are still *horribly* broken
CVS patchset: 3370
CVS date: 1999/10/06 15:51:14
1999-10-06 15:51:14 +00:00
jbj
be45257fd9
dumb cpp's want white space around lclint annotations (Tim Mooney).
...
aix: aix.req broken by cut-and-paste (Tim Mooney).
CVS patchset: 3367
CVS date: 1999/10/04 20:18:48
1999-10-04 20:18:48 +00:00
jbj
ff642c3a5e
HPUX cc compiler fidgets.
...
CVS patchset: 3355
CVS date: 1999/09/30 16:56:05
1999-09-30 16:56:05 +00:00
jbj
3881635966
lclint annotations.
...
CVS patchset: 3319
CVS date: 1999/09/22 18:17:41
1999-09-22 18:17:41 +00:00
jbj
20d78e939a
fix: command line install had header memory leak.
...
check for NULL on all memory allocations.
free rpmrc mallocs on exit.
permit run time leak detection.
CVS patchset: 3311
CVS date: 1999/09/21 03:22:53
1999-09-21 03:22:53 +00:00
jbj
b8d3c0d56a
lclint annotations.
...
CVS patchset: 3288
CVS date: 1999/09/17 20:40:41
1999-09-17 20:40:41 +00:00
jbj
1e4d3532ea
resuscitate net shared paths ( #4330 ).
...
CVS patchset: 3228
CVS date: 1999/08/15 19:11:40
1999-08-15 19:11:40 +00:00
jbj
07f2fceeb4
Prepare for per-package non-string macros like epoch.
...
Collapse RPMFILE_STATE_NETSHARED onto RPMFILE_STATE_NOTINSTALLED.
CVS patchset: 3222
CVS date: 1999/08/09 14:28:13
1999-08-09 14:28:13 +00:00
jbj
64c9a2d1cf
Use headerNVR throughout.
...
More const's.
CVS patchset: 3216
CVS date: 1999/08/06 22:52:49
1999-08-06 22:52:49 +00:00
jbj
78808908b4
make query (rpm -qvl) behave like (POSIX?) ls for older files ( #4050 ).
...
CVS patchset: 3176
CVS date: 1999/07/17 19:00:45
1999-07-17 19:00:45 +00:00
jbj
8bd997f2e0
Perl bindings need
...
#include <foo.h>
not
#include "foo.h"
CVS patchset: 3143
CVS date: 1999/07/13 21:37:57
1999-07-13 21:37:57 +00:00
jbj
8938ee3a9d
Eliminate unnecessary extern.
...
CVS patchset: 3138
CVS date: 1999/07/10 16:23:30
1999-07-10 16:23:30 +00:00
jbj
9ed3f8f6fd
changelog stamp broken w/ big endian 64 bit time_t (Stephane Erania).
...
CVS patchset: 3129
CVS date: 1999/07/06 17:32:49
1999-07-06 17:32:49 +00:00
jbj
5fc70a54d7
More ugliness.
...
CVS patchset: 3119
CVS date: 1999/06/30 21:24:06
1999-06-30 21:24:06 +00:00
jbj
2cc65c7fb7
Ugly hack to get query dependencies right.
...
CVS patchset: 3118
CVS date: 1999/06/30 21:18:43
1999-06-30 21:18:43 +00:00
jbj
ae5b56fa00
move url.c and ftp.c to rpmlib right next to query.
...
CVS patchset: 3115
CVS date: 1999/06/30 19:02:46
1999-06-30 19:02:46 +00:00