tools/librpm-tizen.git
24 years agouninstall.c: rpmdbRemove used to have 2nd arg, tolerant = 0. This generates
jbj [Wed, 15 Dec 1999 17:10:31 +0000 (17:10 +0000)]
uninstall.c: rpmdbRemove used to have 2nd arg, tolerant = 0. This generates
an error message because of a db-1.85 hash access bug that cannot be
easily fixed. So, we turn off the error message.

CVS patchset: 3484
CVS date: 1999/12/15 17:10:31

24 years agoSanity (make dist).
jbj [Wed, 15 Dec 1999 15:52:47 +0000 (15:52 +0000)]
Sanity (make dist).

CVS patchset: 3483
CVS date: 1999/12/15 15:52:47

24 years agoSanity (make dist).
jbj [Wed, 15 Dec 1999 15:52:47 +0000 (15:52 +0000)]
Sanity (make dist).

CVS patchset: 3482
CVS date: 1999/12/15 15:52:47

24 years agofix: compressFileList was over-generating dirNames.
jbj [Wed, 15 Dec 1999 15:51:30 +0000 (15:51 +0000)]
fix: compressFileList was over-generating dirNames.
fix: alAddPackage sorted dirNames too soon, destroying dirMapping.

CVS patchset: 3481
CVS date: 1999/12/15 15:51:30

24 years agoNULL missing at end of packages-to-be-installed array.
jbj [Mon, 13 Dec 1999 19:27:34 +0000 (19:27 +0000)]
NULL missing at end of packages-to-be-installed array.

CVS patchset: 3480
CVS date: 1999/12/13 19:27:34

24 years agoreload macros from cmd line when re-reading config files.
jbj [Sun, 12 Dec 1999 21:14:05 +0000 (21:14 +0000)]
reload macros from cmd line when re-reading config files.

CVS patchset: 3479
CVS date: 1999/12/12 21:14:05

24 years agolib/rpminstall.c: Perform glob on remote ftp install args.
jbj [Sun, 12 Dec 1999 17:46:22 +0000 (17:46 +0000)]
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

24 years agoperform glob on remote ftp queries.
jbj [Sun, 12 Dec 1999 01:46:13 +0000 (01:46 +0000)]
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

24 years agoSanity (make dist).
jbj [Sat, 11 Dec 1999 17:55:20 +0000 (17:55 +0000)]
Sanity (make dist).

CVS patchset: 3476
CVS date: 1999/12/11 17:55:20

24 years agoSanity (make dist).
jbj [Sat, 11 Dec 1999 17:55:20 +0000 (17:55 +0000)]
Sanity (make dist).

CVS patchset: 3475
CVS date: 1999/12/11 17:55:20

24 years agopartial implementation for ftp globbing.
jbj [Sat, 11 Dec 1999 17:53:25 +0000 (17:53 +0000)]
partial implementation for ftp globbing.

CVS patchset: 3474
CVS date: 1999/12/11 17:53:25

24 years agodoLookup() wasn't stat'ing / properly
ewt [Sat, 11 Dec 1999 17:47:55 +0000 (17:47 +0000)]
doLookup() wasn't stat'ing / properly

CVS patchset: 3473
CVS date: 1999/12/11 17:47:55

24 years agoSanity (make dist).
jbj [Fri, 10 Dec 1999 21:29:23 +0000 (21:29 +0000)]
Sanity (make dist).

CVS patchset: 3472
CVS date: 1999/12/10 21:29:23

24 years agoSanity (make dist).
jbj [Fri, 10 Dec 1999 21:29:23 +0000 (21:29 +0000)]
Sanity (make dist).

CVS patchset: 3471
CVS date: 1999/12/10 21:29:23

24 years agoadd contentLength sanity check on rpmdb headerWrite.
jbj [Fri, 10 Dec 1999 21:26:58 +0000 (21:26 +0000)]
add contentLength sanity check on rpmdb headerWrite.

CVS patchset: 3470
CVS date: 1999/12/10 21:26:58

24 years agofix: don't look at password when searching urlCache.
jbj [Fri, 10 Dec 1999 18:13:23 +0000 (18:13 +0000)]
fix: don't look at password when searching urlCache.

CVS patchset: 3469
CVS date: 1999/12/10 18:13:23

24 years agoSanity (make dist).
jbj [Fri, 10 Dec 1999 15:44:12 +0000 (15:44 +0000)]
Sanity (make dist).

CVS patchset: 3468
CVS date: 1999/12/10 15:44:12

24 years agoBack out fix for dirIndexes memory leak.
jbj [Fri, 10 Dec 1999 15:37:41 +0000 (15:37 +0000)]
Back out fix for dirIndexes memory leak.

CVS patchset: 3467
CVS date: 1999/12/10 15:37:41

24 years agorename new FILENAMES tags to BASENAMES/DIRNAMES/DIRINDEXES.
jbj [Wed, 8 Dec 1999 19:04:50 +0000 (19:04 +0000)]
rename new FILENAMES tags to BASENAMES/DIRNAMES/DIRINDEXES.

CVS patchset: 3466
CVS date: 1999/12/08 19:04:50

24 years agoSanity (make dist).
jbj [Wed, 8 Dec 1999 16:34:04 +0000 (16:34 +0000)]
Sanity (make dist).

CVS patchset: 3465
CVS date: 1999/12/08 16:34:04

24 years agoSanity (make dist).
jbj [Wed, 8 Dec 1999 16:34:04 +0000 (16:34 +0000)]
Sanity (make dist).

CVS patchset: 3464
CVS date: 1999/12/08 16:34:04

24 years agofix: new filelists require package index, not pointer.
jbj [Wed, 8 Dec 1999 16:32:25 +0000 (16:32 +0000)]
fix: new filelists require package index, not pointer.

CVS patchset: 3463
CVS date: 1999/12/08 16:32:25

24 years agoMakefile.am: Add RPM-GPG-KEY to the package.
jbj [Tue, 7 Dec 1999 21:14:51 +0000 (21:14 +0000)]
Makefile.am: Add RPM-GPG-KEY to the package.
Use fdLink/fdFree for fd/scriptFd references in transaction set/availableList.
fprint.h: Permit (and check for) subDir = NULL in fingerPrints.
More lclint annotations.

CVS patchset: 3462
CVS date: 1999/12/07 21:14:51

24 years agoHere is a patch for rpmdiff. It fixes a bug where I did not
jbj [Tue, 7 Dec 1999 07:05:14 +0000 (07:05 +0000)]
Here is a patch for rpmdiff.  It fixes a bug where I did not
understand the difference between:
 'FILEUIDS', 'FILEGIDS',
and
 'FILEGROUPNAME', 'FILEUSERNAME',
Ken

CVS patchset: 3461
CVS date: 1999/12/07 07:05:14

24 years agofix: default for rd_timeoutsecs is 1 sec (avoid ufdio assertion).
jbj [Mon, 6 Dec 1999 18:03:52 +0000 (18:03 +0000)]
fix: default for rd_timeoutsecs is 1 sec (avoid ufdio assertion).

CVS patchset: 3460
CVS date: 1999/12/06 18:03:52

24 years agofix: Fopen should use 0666 as default (umask will be applied later).
jbj [Mon, 6 Dec 1999 17:53:13 +0000 (17:53 +0000)]
fix: Fopen should use 0666 as default (umask will be applied later).

CVS patchset: 3459
CVS date: 1999/12/06 17:53:13

24 years agoSanity (make dist).
jbj [Sun, 5 Dec 1999 21:23:55 +0000 (21:23 +0000)]
Sanity (make dist).

CVS patchset: 3458
CVS date: 1999/12/05 21:23:55

24 years agoexpose enough of the legacy fdio interface to compile rpmfind/rpm2html.
jbj [Sun, 5 Dec 1999 21:22:45 +0000 (21:22 +0000)]
expose enough of the legacy fdio interface to compile rpmfind/rpm2html.

CVS patchset: 3457
CVS date: 1999/12/05 21:22:45

24 years agoHandle both old and new style bash2 hacks for now.
jbj [Thu, 2 Dec 1999 21:58:04 +0000 (21:58 +0000)]
Handle both old and new style bash2 hacks for now.

CVS patchset: 3456
CVS date: 1999/12/02 21:58:04

24 years agoSanity (make dist).
jbj [Thu, 2 Dec 1999 20:38:44 +0000 (20:38 +0000)]
Sanity (make dist).

CVS patchset: 3455
CVS date: 1999/12/02 20:38:44

24 years agoBump release.
jbj [Thu, 2 Dec 1999 20:37:26 +0000 (20:37 +0000)]
Bump release.

CVS patchset: 3454
CVS date: 1999/12/02 20:37:26

24 years agoinitial version of check-prereqs.
jbj [Thu, 2 Dec 1999 18:30:31 +0000 (18:30 +0000)]
initial version of check-prereqs.

CVS patchset: 3453
CVS date: 1999/12/02 18:30:31

24 years agofail to package if absolute symlink points within build root.
jbj [Thu, 2 Dec 1999 17:07:29 +0000 (17:07 +0000)]
fail to package if absolute symlink points within build root.

CVS patchset: 3452
CVS date: 1999/12/02 17:07:29

24 years agopermit --whatprovides to lookup file dependencies.
jbj [Thu, 2 Dec 1999 16:31:35 +0000 (16:31 +0000)]
permit --whatprovides to lookup file dependencies.

CVS patchset: 3451
CVS date: 1999/12/02 16:31:35

24 years agoSanity (make dist).
jbj [Wed, 1 Dec 1999 20:17:05 +0000 (20:17 +0000)]
Sanity (make dist).

CVS patchset: 3450
CVS date: 1999/12/01 20:17:05

24 years agoSolaris fiddles.
jbj [Wed, 1 Dec 1999 20:00:39 +0000 (20:00 +0000)]
Solaris fiddles.

CVS patchset: 3449
CVS date: 1999/12/01 20:00:39

24 years agoAdd underscore in front of (possibly) non-supported FDIO_t vectors.
jbj [Wed, 1 Dec 1999 19:57:17 +0000 (19:57 +0000)]
Add underscore in front of (possibly) non-supported FDIO_t vectors.
Make buildFileList() part of rpmlib API as rpmBuildFileList().
lib/rpmdb.c: Compare fingerprints from different caches by value.

CVS patchset: 3448
CVS date: 1999/12/01 19:57:17

24 years agoSanity.
jbj [Tue, 30 Nov 1999 18:41:12 +0000 (18:41 +0000)]
Sanity.

CVS patchset: 3447
CVS date: 1999/11/30 18:41:12

24 years agopython/* needs to include "system.h".
jbj [Tue, 30 Nov 1999 18:39:50 +0000 (18:39 +0000)]
python/* needs to include "system.h".

CVS patchset: 3446
CVS date: 1999/11/30 18:39:50

24 years agolib/transaction.c: Fix (in the right place) the dil memory leak.
jbj [Tue, 30 Nov 1999 18:27:49 +0000 (18:27 +0000)]
lib/transaction.c: Fix (in the right place) the dil memory leak.

CVS patchset: 3445
CVS date: 1999/11/30 18:27:49

24 years agoUpdate-po.
jbj [Tue, 30 Nov 1999 18:13:39 +0000 (18:13 +0000)]
Update-po.

CVS patchset: 3444
CVS date: 1999/11/30 18:13:39

24 years agolib/depends.c: Fix minor memory leak.
jbj [Tue, 30 Nov 1999 18:07:08 +0000 (18:07 +0000)]
lib/depends.c: Fix minor memory leak.
lib/fprint.c: Pass both dirName/baseName to fpLookup() to avoid memory leaks.
lib/rpmdb.c: ditto, and use scaremem=1.
lib/transaction.c: Fix minor memory leak.

CVS patchset: 3443
CVS date: 1999/11/30 18:07:08

24 years agolib/install.c: Check errno and mkdir specdir/sourcedir only for local fs.
jbj [Tue, 30 Nov 1999 14:49:45 +0000 (14:49 +0000)]
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

24 years agoAdd timestamping to statistics.
jbj [Mon, 29 Nov 1999 14:56:36 +0000 (14:56 +0000)]
Add timestamping to statistics.
Rudimentary display of statistics for GZDIO/BZDIO.

CVS patchset: 3441
CVS date: 1999/11/29 14:56:36

24 years agolib/stubs.c: Add portability routines to rpmlib for portable shared rpmlib.
jbj [Sat, 27 Nov 1999 00:15:07 +0000 (00:15 +0000)]
lib/stubs.c: Add portability routines to rpmlib for portable shared rpmlib.
lib/rpmio.c: Internalize single use of inet_aton().
lib/rpmio.h: Include libio.h retrofit here rather than in system.h.
configure.in: Remove regex/glob tests.

CVS patchset: 3440
CVS date: 1999/11/27 00:15:07

24 years agoMinimal python compile.
jbj [Fri, 26 Nov 1999 22:31:19 +0000 (22:31 +0000)]
Minimal python compile.

CVS patchset: 3439
CVS date: 1999/11/26 22:31:19

24 years agoPackage 3.0.4-0.1
jbj [Fri, 26 Nov 1999 22:02:37 +0000 (22:02 +0000)]
Package 3.0.4-0.1

CVS patchset: 3438
CVS date: 1999/11/26 22:02:37

24 years agouse directory tokens internally to reduce memory usage.
jbj [Fri, 26 Nov 1999 22:00:02 +0000 (22:00 +0000)]
use directory tokens internally to reduce memory usage.

CVS patchset: 3437
CVS date: 1999/11/26 22:00:02

24 years agoConsistent usage for fileNames, baseNames, dirNames and dirIndexes throughout.
jbj [Fri, 26 Nov 1999 21:58:42 +0000 (21:58 +0000)]
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

24 years agolib/macro.c: Create rpmCleanPath().
jbj [Fri, 26 Nov 1999 16:19:30 +0000 (16:19 +0000)]
lib/macro.c: Create rpmCleanPath().
build/misc.c: Delete cleanFileName().

CVS patchset: 3435
CVS date: 1999/11/26 16:19:30

24 years agoDisplay message if GNU xgettext is not found.
jbj [Wed, 24 Nov 1999 16:55:42 +0000 (16:55 +0000)]
Display message if GNU xgettext is not found.

CVS patchset: 3434
CVS date: 1999/11/24 16:55:42

24 years agobuild/files.c: Remove dead code.
jbj [Wed, 24 Nov 1999 16:16:17 +0000 (16:16 +0000)]
build/files.c: Remove dead code.
lib/cpio.c: Open file to be installed with "w" not "r+".
lib/fprint.c: Use variable length string keys for rpmdbFindByFile cache.

CVS patchset: 3433
CVS date: 1999/11/24 16:16:17

24 years agolib/macro.c: Canonicalize paths in rpmGetPath().
jbj [Wed, 24 Nov 1999 00:03:54 +0000 (00:03 +0000)]
lib/macro.c: Canonicalize paths in rpmGetPath().
build.c: ditto.
build/build.c: ditto.
build/files.c: ditto.
build/parsePreamble.c: ditto.
build/parseSpec.c: ditto.
build/myftw.c: Use Opendir/Readdir/Closedir wrappers.
lib/cpio.c: Use Readlink/Stat/Lstat wrappers while building archive.
lib/rpmio.c: functional ftpLstat, ftpStat and ftpReadlink.

CVS patchset: 3432
CVS date: 1999/11/24 00:03:54

24 years agoAdd reminder to export shell variables.
jbj [Fri, 19 Nov 1999 19:47:43 +0000 (19:47 +0000)]
Add reminder to export shell variables.

CVS patchset: 3431
CVS date: 1999/11/19 19:47:43

24 years agomacros.in: Add buildsubdir and scriptlet template macros.
jbj [Fri, 19 Nov 1999 18:19:41 +0000 (18:19 +0000)]
macros.in: Add buildsubdir and scriptlet template macros.
build/build.c: Rewrite to use scriptlet templates.
build/files.c: Rename variables to prepare for (possibly) URL's in %files.
build/myftw.c: Use Lstat.
build/parsePreamble.c: Permit URL's in BuildRoot tag if not from spec file.
build/parseSpec.c: ditto
build/parsePrep.c: Add buildsubdir macro.
lib/macro.c: Add url2path (nickname u2p) and verbose macro primitives.
lib/url.c: urlPath returns "" if url is NULL (rpmGenPath memory corruption).

CVS patchset: 3430
CVS date: 1999/11/19 18:19:41

24 years agoThe death of lib/ftp.c, merged into lib/rpmio.c.
jbj [Thu, 18 Nov 1999 18:07:46 +0000 (18:07 +0000)]
The death of lib/ftp.c, merged into lib/rpmio.c.
Start composting the rpmio API.
Preliminary (not working) support for HTTP PUT.
build.c: Check fd for NULL and use Ferror() for Fopen return.
build/parseSpec.c: ditto
build/pack.c: Use fdGetFP() rather than fpio->ffileno().
build/parseSpec.c: ditto
build/pack.c: Use Stat/Mkdir wrappers.
build/pack.c: Do Fflush before fdDup so that writes can remain buffered.
lib/install.c: ditto
build/parsePrep.c: Skip over URL leadin when writing %prep scriptlet.
lib/misc.c: Rewrite to use simpler urlPath(). Restore checks on local fs.
lib/rpmchecksig.c: Open with "r+" rather than "w" to avoid truncation.
lib/url.c: Do lazy malloc of u->buf in rpmio.c checkResponse().
lib/rpmio.c: Make persist/contentLength per-fd rather than per-url.
lib/rpmio.c: Add wr_chunked method for HTTP PUT (still broken).
lib/rpmio.c: ftpAbort() should use timedRead.
lib/rpmio.c: Add Fflush().
lib/url.c: urlPath() should return something ("/") on url = NULL (paranoia).
lib/url.c: urlSplit() should return something ("/") on url w/o path.

CVS patchset: 3429
CVS date: 1999/11/18 18:07:46

24 years agoFrom: Dick Porter <dick@acm.org> --
jbj [Thu, 18 Nov 1999 17:10:15 +0000 (17:10 +0000)]
From: Dick Porter <dick@acm.org> --
Here is a patch for popt to implement selective argument stripping from argv.
With this patch I can use popt in ORBit (the CORBA spec requires ORBs to
remove all ORB options from argv), which allows me to export a popt option
table to the rest of Gnome.
There is also a bug fix included where a string was realloc()d into a space
too small to hold the trailing NULL.

CVS patchset: 3428
CVS date: 1999/11/18 17:10:15

24 years agofix: realloc didn't include space for trailing NUL.
jbj [Thu, 18 Nov 1999 16:57:45 +0000 (16:57 +0000)]
fix: realloc didn't include space for trailing NUL.

CVS patchset: 3427
CVS date: 1999/11/18 16:57:45

24 years agoMake static fd in transaction callback persistent.
jbj [Mon, 15 Nov 1999 23:57:18 +0000 (23:57 +0000)]
Make static fd in transaction callback persistent.

CVS patchset: 3426
CVS date: 1999/11/15 23:57:18

24 years agorpm.c: Add --ftpdebug, --urldebug, --rpmiodebug (for my sanity).
jbj [Mon, 15 Nov 1999 22:16:54 +0000 (22:16 +0000)]
rpm.c: Add --ftpdebug, --urldebug, --rpmiodebug (for my sanity).
build/pack.c: Remove unnecessary persist in package{Sources,Binaries}.
lib/rpmio.c: Expose fdGetFp() for use in url.c.
lib/rpmio.c: Debug refs with FILE/FTP/HTTP url's.
lib/url.c: Push fp in order to use Fclose() when cleaning up url cache.

CVS patchset: 3425
CVS date: 1999/11/15 22:16:54

24 years agolib/rpmio.c: Implement per-fd layers as a stack, add fdPush/fdPop.
jbj [Sun, 14 Nov 1999 19:15:18 +0000 (19:15 +0000)]
lib/rpmio.c: Implement per-fd layers as a stack, add fdPush/fdPop.
lib/rpmio.c: Add fd{Get,Set}{Io,Fp,Fdno} abstraction wrappers.
lib/rpmio.c: Start rationalizing debug output by using fdbg to display the
fd layer stack.
rpm.c: Add --nolibio to disable libio if desired.
rpm2cpio.c: Use Fdopen(..., gzdio) and ufdCopy().
build/build.c: Use Fdopen(..., fpio) rather than fdio.
build/files.c: Use Fdopen(..., fpio) rather than ufdio.
build/parseSpec.c: ditto.
lib/macro.c: ditto.
lib/rpmrc.c: ditto
lib/macro.c: Use Fopen(..., ufdio) in isCompressed() rather that fdOpen().
lib/misc.c: ditto.
lib/misc.c: Avoid fstat by using Stat.
build/pack.c: Add persist fdLink() and use fdFree() in package{Sources,Binaries}
build/pack.c: Try to remove the fdDup before cpioBuildArchive() call.
build/pack.c: Use rpmGenPath with %{_builddir}.
build/parsePreamble.c: Use fdSize rather than Stat to get icon file size.
lib/rpmrc.c: ditto
lib/ftp.c: start capturing ufdio layer syserrno/errcookie.

CVS patchset: 3424
CVS date: 1999/11/14 19:15:18

24 years agoadd/update dependency scripts (Ken Estes).
jbj [Fri, 12 Nov 1999 21:26:04 +0000 (21:26 +0000)]
add/update dependency scripts (Ken Estes).

CVS patchset: 3423
CVS date: 1999/11/12 21:26:04

24 years agoUse Fstrerror on ufdio throughut.
jbj [Fri, 12 Nov 1999 17:20:49 +0000 (17:20 +0000)]
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

24 years agoSwap 2nd and 3rd arg to Fread/Fwrite to preserve read/write type return.
jbj [Wed, 10 Nov 1999 22:09:49 +0000 (22:09 +0000)]
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

24 years agofix: typo in error message (#6858).
jbj [Tue, 9 Nov 1999 20:57:38 +0000 (20:57 +0000)]
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

24 years agoSanity.
jbj [Sat, 6 Nov 1999 20:44:11 +0000 (20:44 +0000)]
Sanity.

CVS patchset: 3419
CVS date: 1999/11/06 20:44:11

24 years agorpmio.c: Add per FD_t syserrno, read timers and simple counting statistics.
jbj [Fri, 5 Nov 1999 20:00:26 +0000 (20:00 +0000)]
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

24 years agoUse Fopen almost everywhere.
jbj [Thu, 4 Nov 1999 21:26:08 +0000 (21:26 +0000)]
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

24 years agoFirst use of libio.
jbj [Wed, 3 Nov 1999 20:33:53 +0000 (20:33 +0000)]
First use of libio.

CVS patchset: 3416
CVS date: 1999/11/03 20:33:53

24 years agoMove most of the ftp and http interface to rpmio.c.
jbj [Tue, 2 Nov 1999 17:56:30 +0000 (17:56 +0000)]
Move most of the ftp and http interface to rpmio.c.

CVS patchset: 3415
CVS date: 1999/11/02 17:56:30

24 years agoAdd ref/deref/new/fileno/open vectors to FDIO_t.
jbj [Tue, 2 Nov 1999 14:33:14 +0000 (14:33 +0000)]
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

24 years agofix: expandNextArg() can't permit '\\' escapes.
jbj [Mon, 1 Nov 1999 23:23:09 +0000 (23:23 +0000)]
fix: expandNextArg() can't permit '\\' escapes.

CVS patchset: 3413
CVS date: 1999/11/01 23:23:09

24 years agoTypo.
jbj [Mon, 1 Nov 1999 19:03:31 +0000 (19:03 +0000)]
Typo.

CVS patchset: 3412
CVS date: 1999/11/01 19:03:31

24 years agofreshen.sh: detect when all packages are up to date (Ian Macdonald).
jbj [Mon, 1 Nov 1999 19:02:46 +0000 (19:02 +0000)]
freshen.sh: detect when all packages are up to date (Ian Macdonald).

CVS patchset: 3411
CVS date: 1999/11/01 19:02:46

24 years agoftp.c: Preserve FD_t abstraction by creating fdDebug()/ufdSetFd().
jbj [Mon, 1 Nov 1999 14:29:37 +0000 (14:29 +0000)]
ftp.c: Preserve FD_t abstraction by creating fdDebug()/ufdSetFd().

CVS patchset: 3410
CVS date: 1999/11/01 14:29:37

24 years agoSpec: Add rootdir (as in chroot).
jbj [Sun, 31 Oct 1999 21:38:21 +0000 (21:38 +0000)]
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

24 years agoRename faFoo() routines, use FD_t I/O with fadio cookie throughout.
jbj [Sat, 30 Oct 1999 21:26:45 +0000 (21:26 +0000)]
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

24 years agoMake fdFileno() static, use Fileno()/Ferror() analogues throughout.
jbj [Sat, 30 Oct 1999 16:43:29 +0000 (16:43 +0000)]
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

24 years agoMerged back into rpmio.c.
jbj [Sat, 30 Oct 1999 16:17:02 +0000 (16:17 +0000)]
Merged back into rpmio.c.

CVS patchset: 3406
CVS date: 1999/10/30 16:17:02

24 years agoSanity.
jbj [Sat, 30 Oct 1999 16:16:30 +0000 (16:16 +0000)]
Sanity.

CVS patchset: 3405
CVS date: 1999/10/30 16:16:30

24 years agofix: resurrect multiple target platform builds.
jbj [Fri, 29 Oct 1999 23:03:12 +0000 (23:03 +0000)]
fix: resurrect multiple target platform builds.

CVS patchset: 3404
CVS date: 1999/10/29 23:03:12

24 years agocheck for memory leaks (almost all leaks are plugged).
jbj [Fri, 29 Oct 1999 16:06:01 +0000 (16:06 +0000)]
check for memory leaks (almost all leaks are plugged).

CVS patchset: 3403
CVS date: 1999/10/29 16:06:01

24 years agouse compressed filenames on install side.
jbj [Wed, 27 Oct 1999 23:18:10 +0000 (23:18 +0000)]
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

24 years agoAdd poptDupArgv() and const's to popt.3 man page.
jbj [Mon, 25 Oct 1999 20:10:00 +0000 (20:10 +0000)]
Add poptDupArgv() and const's to popt.3 man page.

CVS patchset: 3401
CVS date: 1999/10/25 20:10:00

24 years agolclint annotations.
jbj [Mon, 25 Oct 1999 19:07:14 +0000 (19:07 +0000)]
lclint annotations.

CVS patchset: 3400
CVS date: 1999/10/25 19:07:14

24 years agoLazy allocation of deleted arg bit map.
jbj [Mon, 25 Oct 1999 18:24:38 +0000 (18:24 +0000)]
Lazy allocation of deleted arg bit map.

CVS patchset: 3399
CVS date: 1999/10/25 18:24:38

24 years agoAdd !#:+ token parsing to retrieve (and delete) next argument from list.
jbj [Mon, 25 Oct 1999 18:22:19 +0000 (18:22 +0000)]
Add !#:+ token parsing to retrieve (and delete) next argument from list.

CVS patchset: 3398
CVS date: 1999/10/25 18:22:19

24 years agoModify test1 to do poptResetContext before parsing args.
jbj [Fri, 22 Oct 1999 18:25:39 +0000 (18:25 +0000)]
Modify test1 to do poptResetContext before parsing args.

CVS patchset: 3397
CVS date: 1999/10/22 18:25:39

24 years agofix: long options like "--long=val" needed longArg reset to NULL at top of
jbj [Fri, 22 Oct 1999 18:10:51 +0000 (18:10 +0000)]
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

24 years agoFunctional "make check".
jbj [Thu, 21 Oct 1999 21:38:18 +0000 (21:38 +0000)]
Functional "make check".

CVS patchset: 3395
CVS date: 1999/10/21 21:38:18

24 years agolclint annotations and compiler cruft.
jbj [Thu, 21 Oct 1999 20:36:16 +0000 (20:36 +0000)]
lclint annotations and compiler cruft.

CVS patchset: 3394
CVS date: 1999/10/21 20:36:16

24 years agolclint annotations.
jbj [Thu, 21 Oct 1999 18:48:00 +0000 (18:48 +0000)]
lclint annotations.

CVS patchset: 3393
CVS date: 1999/10/21 18:48:00

24 years agoCreate.
jbj [Thu, 21 Oct 1999 18:20:29 +0000 (18:20 +0000)]
Create.

CVS patchset: 3392
CVS date: 1999/10/21 18:20:29

24 years agolclint annotations.
jbj [Thu, 21 Oct 1999 18:20:12 +0000 (18:20 +0000)]
lclint annotations.

CVS patchset: 3391
CVS date: 1999/10/21 18:20:12

24 years agolclint annotations.
jbj [Thu, 21 Oct 1999 15:04:25 +0000 (15:04 +0000)]
lclint annotations.

CVS patchset: 3390
CVS date: 1999/10/21 15:04:25

24 years agogot installs/removes working with new file lists
ewt [Thu, 21 Oct 1999 02:40:57 +0000 (02:40 +0000)]
got installs/removes working with new file lists

CVS patchset: 3389
CVS date: 1999/10/21 02:40:57

24 years agoUse xmalloc/xrealloc/xstrdup.
jbj [Wed, 20 Oct 1999 21:47:42 +0000 (21:47 +0000)]
Use xmalloc/xrealloc/xstrdup.

CVS patchset: 3388
CVS date: 1999/10/20 21:47:42

24 years agolclint annotations.
jbj [Wed, 20 Oct 1999 21:40:10 +0000 (21:40 +0000)]
lclint annotations.

CVS patchset: 3387
CVS date: 1999/10/20 21:40:10

24 years agoTyo: RPMTAG_COMPFILENAMES is ...COMPFILELIST.
jbj [Wed, 20 Oct 1999 18:38:37 +0000 (18:38 +0000)]
Tyo: RPMTAG_COMPFILENAMES is ...COMPFILELIST.
Remove compiler warnings.

CVS patchset: 3386
CVS date: 1999/10/20 18:38:37

24 years agoperl from /usr/bin
jbj [Wed, 20 Oct 1999 16:48:10 +0000 (16:48 +0000)]
perl from /usr/bin

CVS patchset: 3385
CVS date: 1999/10/20 16:48:10