Commit Graph

3234 Commits

Author SHA1 Message Date
jbj 471ba3b238 add/update dependency scripts (Ken Estes).
CVS patchset: 3423
CVS date: 1999/11/12 21:26:04
1999-11-12 21:26:04 +00:00
jbj 8ce88756fd Use Fstrerror on ufdio throughut.
rpm.c: add --rmspec to usage output.
build/files.c: use ufdio to permit '%files -f <url>' (untested).
build/pack.c: use ufdio in readRPM(), writeRPM(), and addFileToTag().
build/parsePreamble.c: use ufdio in readIcon().
lib/ftp.c: httpOpen() now takes FD_t ctrl arg to uncouple from u->ctrl.
lib/install.c: usr rpmGenPath() to identify first found url in file path concat.
lib/install.c: permit url's in files[i].relativePath.
lib/macro.c: use ufdio, diddle macros for tmacro standalone build.
lib/macro.c: Create rpmGenPath().
lib/macro.c: diddle macro files path to permit url's.
lib/rpmchecksig.c: use Fopen on fdio.
lib/rpmio.c: replace copyData() with ufdCopy().
lib/rpmio.c: replace httpGetFile() with ufdGetFile().
lib/rpmio.c: add ufdWrite().
lib/rpmio.c: permit 2 simultaneous persistent malloc/open HTTP/1.1 connections.
lib/rpmio.c: Add Lstat(), Stat(), and Access().
lib/rpmio.c: assume paths in syscall stubs are loopback (WRONG).
lib/url.c: add urlPath().

CVS patchset: 3422
CVS date: 1999/11/12 17:20:49
1999-11-12 17:20:49 +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 20cafc16fe Sanity.
CVS patchset: 3419
CVS date: 1999/11/06 20:44:11
1999-11-06 20:44:11 +00:00
jbj e8c7c6893c rpmio.c: Add per FD_t syserrno, read timers and simple counting statistics.
rpmio.c: Honor contentLength to prevent R/W I/O dribbles.
ftp.c: Support for HTTP/1.1 with persistent connection.
ftp.c: Read (and set) Content-Length and HTTP minor version from reply.

CVS patchset: 3418
CVS date: 1999/11/05 20:00:26
1999-11-05 20:00:26 +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 94dd9f796e First use of libio.
CVS patchset: 3416
CVS date: 1999/11/03 20:33:53
1999-11-03 20:33:53 +00:00
jbj 85d4129c7b Move most of the ftp and http interface to rpmio.c.
CVS patchset: 3415
CVS date: 1999/11/02 17:56:30
1999-11-02 17:56:30 +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 65a08c9e60 fix: expandNextArg() can't permit '\\' escapes.
CVS patchset: 3413
CVS date: 1999/11/01 23:23:09
1999-11-01 23:23:09 +00:00
jbj b1cb8f1b3e Typo.
CVS patchset: 3412
CVS date: 1999/11/01 19:03:31
1999-11-01 19:03:31 +00:00
jbj decd648320 freshen.sh: detect when all packages are up to date (Ian Macdonald).
CVS patchset: 3411
CVS date: 1999/11/01 19:02:46
1999-11-01 19:02:46 +00:00
jbj efa7fc6d03 ftp.c: Preserve FD_t abstraction by creating fdDebug()/ufdSetFd().
CVS patchset: 3410
CVS date: 1999/11/01 14:29:37
1999-11-01 14:29:37 +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 3d087dcf52 Rename faFoo() routines, use FD_t I/O with fadio cookie throughout.
Try to be URL sensitive on filename arguments throughout.
falloc.c: Eliminate faFile, use FD_t.
falloc.c: preserve abstract FD_t by creating fadGet*()/fadSet*().
macro.c: rpmGetPath() expansions were clobbering URL's.
rpmio.c: create Fcntl(), Pread(), Pwrite() from previous faFoo().
rpmio.c: attempt per FD_t debugging.
rpm.c: permit --dbpath with --rebuild.

CVS patchset: 3408
CVS date: 1999/10/30 21:26:45
1999-10-30 21:26:45 +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 533991efdb Merged back into rpmio.c.
CVS patchset: 3406
CVS date: 1999/10/30 16:17:02
1999-10-30 16:17:02 +00:00
jbj 1484a93a3f Sanity.
CVS patchset: 3405
CVS date: 1999/10/30 16:16:30
1999-10-30 16:16:30 +00:00
jbj 7b4cf4bf19 fix: resurrect multiple target platform builds.
CVS patchset: 3404
CVS date: 1999/10/29 23:03:12
1999-10-29 23:03:12 +00:00
jbj 1e0138188b check for memory leaks (almost all leaks are plugged).
CVS patchset: 3403
CVS date: 1999/10/29 16:06:01
1999-10-29 16:06:01 +00:00
jbj 0d0b405c20 use compressed filenames on install side.
start unifying FD types, CFD_t now gone.

CVS patchset: 3402
CVS date: 1999/10/27 23:18:10
1999-10-27 23:18:10 +00:00
jbj 82c75cb6a2 Add poptDupArgv() and const's to popt.3 man page.
CVS patchset: 3401
CVS date: 1999/10/25 20:10:00
1999-10-25 20:10:00 +00:00
jbj b074f1e2e7 lclint annotations.
CVS patchset: 3400
CVS date: 1999/10/25 19:07:14
1999-10-25 19:07:14 +00:00
jbj ba1f155cdc Lazy allocation of deleted arg bit map.
CVS patchset: 3399
CVS date: 1999/10/25 18:24:38
1999-10-25 18:24:38 +00:00
jbj 1cdcd275a8 Add !#:+ token parsing to retrieve (and delete) next argument from list.
CVS patchset: 3398
CVS date: 1999/10/25 18:22:19
1999-10-25 18:22:19 +00:00
jbj e2d517c67c Modify test1 to do poptResetContext before parsing args.
CVS patchset: 3397
CVS date: 1999/10/22 18:25:39
1999-10-22 18:25:39 +00:00
jbj d4fed4bde1 fix: long options like "--long=val" needed longArg reset to NULL at top of
poptGetNextOpt() while loop.
Variables in poptGetNextOpt() are also locally scoped.

CVS patchset: 3396
CVS date: 1999/10/22 18:10:51
1999-10-22 18:10:51 +00:00
jbj d5b272105b Functional "make check".
CVS patchset: 3395
CVS date: 1999/10/21 21:38:18
1999-10-21 21:38:18 +00:00
jbj bd34f27bb4 lclint annotations and compiler cruft.
CVS patchset: 3394
CVS date: 1999/10/21 20:36:16
1999-10-21 20:36:16 +00:00
jbj c8b83b08c5 lclint annotations.
CVS patchset: 3393
CVS date: 1999/10/21 18:48:00
1999-10-21 18:48:00 +00:00
jbj 8bf4afe2d7 Create.
CVS patchset: 3392
CVS date: 1999/10/21 18:20:29
1999-10-21 18:20:29 +00:00
jbj d1a5cef88a lclint annotations.
CVS patchset: 3391
CVS date: 1999/10/21 18:20:12
1999-10-21 18:20:12 +00:00
jbj 3ae84a6867 lclint annotations.
CVS patchset: 3390
CVS date: 1999/10/21 15:04:25
1999-10-21 15:04:25 +00:00
ewt 1bcfa7ac60 got installs/removes working with new file lists
CVS patchset: 3389
CVS date: 1999/10/21 02:40:57
1999-10-21 02:40:57 +00:00
jbj e6698260f4 Use xmalloc/xrealloc/xstrdup.
CVS patchset: 3388
CVS date: 1999/10/20 21:47:42
1999-10-20 21:47:42 +00:00
jbj 6defa683eb lclint annotations.
CVS patchset: 3387
CVS date: 1999/10/20 21:40:10
1999-10-20 21:40:10 +00:00
jbj 574cad11f2 Tyo: RPMTAG_COMPFILENAMES is ...COMPFILELIST.
Remove compiler warnings.

CVS patchset: 3386
CVS date: 1999/10/20 18:38:37
1999-10-20 18:38:37 +00:00
jbj 22947b332e perl from /usr/bin
CVS patchset: 3385
CVS date: 1999/10/20 16:48:10
1999-10-20 16:48:10 +00:00
jbj b38f7bc532 Dependency code from Ken Estes.
CVS patchset: 3384
CVS date: 1999/10/20 16:46:54
1999-10-20 16:46:54 +00:00
ewt 925c8130d5 another batch of changes for new file list format -- one more to go
CVS patchset: 3383
CVS date: 1999/10/20 10:22:46
1999-10-20 10:22:46 +00:00
ewt 28c54f8f22 relocations work better now
CVS patchset: 3382
CVS date: 1999/10/17 20:59:39
1999-10-17 20:59:39 +00:00
jbj 00ba060900 Start rpm-3.0.4.
CVS patchset: 3381
CVS date: 1999/10/11 16:37:55
1999-10-11 16:37:55 +00:00
jbj 87c7c2f8d7 Add quotes to check for file list existence (nigel@pobox.com).
CVS patchset: 3380
CVS date: 1999/10/11 15:47:27
1999-10-11 15:47:27 +00:00
ewt cfa9ce427b support new file list format for relocations and package removal
CVS patchset: 3379
CVS date: 1999/10/08 20:30:49
1999-10-08 20:30:49 +00:00
jbj 568dceb42b Do lseek as part of readp/writep.
CVS patchset: 3378
CVS date: 1999/10/08 17:42:02
1999-10-08 17:42:02 +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 1ba4ccb870 use OLDFILENAMES tag
CVS patchset: 3376
CVS date: 1999/10/06 22:52:35
1999-10-06 22:52:35 +00:00
ewt c0f5d38f86 updated for compressed file lists -- dep check should stay much smaller
now

CVS patchset: 3375
CVS date: 1999/10/06 22:52:12
1999-10-06 22:52:12 +00:00
ewt 360c32cb66 rpmdbFindByFile() deals with compressed file lists
CVS patchset: 3374
CVS date: 1999/10/06 22:51:53
1999-10-06 22:51:53 +00:00