Commit Graph

141 Commits

Author SHA1 Message Date
ewt 812d83035e ignore config bit for direcrroies
CVS patchset: 1540
CVS date: 1997/04/15 14:42:12
1997-04-15 14:42:12 +00:00
ewt 62d3993e05 fixed error message
CVS patchset: 1483
CVS date: 1997/03/11 17:10:24
1997-03-11 17:10:24 +00:00
ewt c9ba3d9d89 1) cleaned up horrbile relocateFilelist() hacks thanks to new header
2) remove UID, GID lists from headers if symbolic versions are present
3) fixed but in reloacteFilelist() which occasionally made it noop

CVS patchset: 1422
CVS date: 1997/02/14 03:26:16
1997-02-14 03:26:16 +00:00
ewt eafe2c752f use new id query calls from misc.c
CVS patchset: 1414
CVS date: 1997/02/14 02:05:33
1997-02-14 02:05:33 +00:00
ewt 3e9c252539 1) don't ever change the umask
2) when installing sources with --root, directory checks need to
   use the relocated paths

CVS patchset: 1406
CVS date: 1997/02/12 05:05:13
1997-02-12 05:05:13 +00:00
root df5f2c4367 some tmpPath's were being alloceted w/o paying attention to the length
of RPMVAR_TMPPATH

CVS patchset: 1338
CVS date: 1997/01/23 19:17:35
1997-01-23 19:17:35 +00:00
ewt 15e5bfc3ce 1) use config.h if available
2) use if not ifdef
3) use <signal.h> instead of <sys/signal.h>

CVS patchset: 1317
CVS date: 1997/01/17 16:22:57
1997-01-17 16:22:57 +00:00
ewt 80aca08235 1) fixed bug in rpmVersionCompare() with segv'd
2) fixed silly type

CVS patchset: 1285
CVS date: 1997/01/16 16:18:48
1997-01-16 16:18:48 +00:00
ewt 5c221d638b relocating packages didn't work when the package contained a directory
equivalent to the prefix

CVS patchset: 1281
CVS date: 1997/01/15 22:45:36
1997-01-15 22:45:36 +00:00
ewt ba4290acd3 1) made rpmEnsureOlder() static and user a header instead of strings
2) use rpmvercmp() instead of vercmp()
3) added rpmVersionCompare()

CVS patchset: 1276
CVS date: 1997/01/15 16:24:14
1997-01-15 16:24:14 +00:00
ewt e03fdd3874 1) don't chmod() directories that already exist
2) stamp new directories which mtime
3) set umask() to 0

CVS patchset: 1250
CVS date: 1996/12/24 14:00:52
1996-12-24 14:00:52 +00:00
ewt 86e019bab8 actually fixed core dump this time
CVS patchset: 1221
CVS date: 1996/12/11 15:53:58
1996-12-11 15:53:58 +00:00
ewt 211c385ead fixed the fix from memory leak plugging <sigh>
CVS patchset: 1220
CVS date: 1996/12/11 15:39:57
1996-12-11 15:39:57 +00:00
root cb0d3c339c fixed dbiFreeIndex() in rpmInstallPackage() to be called only when it
was needed

CVS patchset: 1216
CVS date: 1996/12/06 20:25:36
1996-12-06 20:25:36 +00:00
ewt 550e8442c3 plugged memory leaks in upgrade
CVS patchset: 1210
CVS date: 1996/12/06 04:07:28
1996-12-06 04:07:28 +00:00
ewt ebecf60346 don't let cpio create *any* directories
CVS patchset: 1206
CVS date: 1996/12/05 22:04:44
1996-12-05 22:04:44 +00:00
ewt 2690f0eeca 1) netsharedpath had unhappy realtions with prefix's
CVS patchset: 1205
CVS date: 1996/12/05 21:11:17
1996-12-05 21:11:17 +00:00
ewt c43e1a299c *** empty log message ***
CVS patchset: 1198
CVS date: 1996/11/22 22:24:59
1996-11-22 22:24:59 +00:00
root d382745d17 The Great Renaming
CVS patchset: 1171
CVS date: 1996/11/18 18:02:36
1996-11-18 18:02:36 +00:00
ewt daae77f092 1) removed \n from error() calls
2) checks for writeable source/spec directories when installing source
   packages
3) returns proper codes when installing source packages

CVS patchset: 1141
CVS date: 1996/10/31 21:06:55
1996-10-31 21:06:55 +00:00
ewt 50eae3a5a4 kill(2) arguments were backwards
CVS patchset: 1139
CVS date: 1996/10/31 19:54:26
1996-10-31 19:54:26 +00:00
ewt e68c916091 added real fix for 2.1 kernel write() behavior
CVS patchset: 1135
CVS date: 1996/10/31 19:45:35
1996-10-31 19:45:35 +00:00
ewt b144da7d02 1) moved code around to make things a bit more readable
2) added support for netsharedPath's
3) cleaned up some memory leaks

CVS patchset: 1126
CVS date: 1996/10/21 02:17:39
1996-10-21 02:17:39 +00:00
ewt 224275ea75 don't assume write(fd, buf, 0) always returns w/o error
CVS patchset: 1099
CVS date: 1996/10/15 15:03:19
1996-10-15 15:03:19 +00:00
ewt ce1c560e21 use cpio specified in rpmrc
CVS patchset: 1081
CVS date: 1996/10/14 23:49:27
1996-10-14 23:49:27 +00:00
ewt e044f14af3 made filecmp() and decideFileFate() protoyped static as well as
defined static

CVS patchset: 1067
CVS date: 1996/09/29 02:27:20
1996-09-29 02:27:20 +00:00
ewt 61ed6250e3 1) made some functions static
2) changed enum fileStates DIR to XDIR to avoid conflicts with <dirent.h>
3) conditionally include alloca.h

CVS patchset: 1048
CVS date: 1996/09/25 19:14:17
1996-09-25 19:14:17 +00:00
ewt 85ad3cfc53 fixed problem in group assignments
CVS patchset: 1034
CVS date: 1996/09/20 14:40:57
1996-09-20 14:40:57 +00:00
ewt e779ebb217 include "rpmdb.h"
CVS patchset: 1021
CVS date: 1996/09/16 22:28:56
1996-09-16 22:28:56 +00:00
ewt 10a25c69b8 1) fileCount of -1 makes installArchive() install all files (for installing
source packages)
2) fixed silly bug in copyFile()

CVS patchset: 1017
CVS date: 1996/09/05 19:58:04
1996-09-05 19:58:04 +00:00
ewt 3224eb87e6 support old, broken md5sum on SPARC's
CVS patchset: 1006
CVS date: 1996/08/31 18:35:40
1996-08-31 18:35:40 +00:00
ewt 6aad602016 1) plugged some memory leaks
2) call _exit(), not exit() from subprocess to prevent stdio buffers from
   being flushed twice

CVS patchset: 998
CVS date: 1996/08/30 19:17:33
1996-08-30 19:17:33 +00:00
ewt 1341d4d5ec 1) take advantage of ARCHIVESIZE (if present) when displaying hash marks
2) support notify functions and labelFormat for source packages >= V2
3) if rename() fails to move a file from SOURCE to SPECS try copying it

CVS patchset: 991
CVS date: 1996/08/29 04:16:07
1996-08-29 04:16:07 +00:00
ewt 4ed78096b7 uses RPMVAR_TMPPATH
CVS patchset: 976
CVS date: 1996/08/20 16:28:40
1996-08-20 16:28:40 +00:00
root c3a1335f50 null terminate the result of readlink()
CVS patchset: 946
CVS date: 1996/08/08 16:46:15
1996-08-08 16:46:15 +00:00
ewt 9ba82b190e config file md5 sums were improperly calculated for root and prefixed
installs

CVS patchset: 937
CVS date: 1996/07/31 18:45:22
1996-07-31 18:45:22 +00:00
ewt 712b328510 changed warning text
CVS patchset: 936
CVS date: 1996/07/29 19:29:47
1996-07-29 19:29:47 +00:00
ewt 79e061d575 changed warning for saved files to RPMMESS_BACKUP
CVS patchset: 935
CVS date: 1996/07/29 19:27:50
1996-07-29 19:27:50 +00:00
ewt 2e698f176f check new file list for config files as well as the old ones
CVS patchset: 932
CVS date: 1996/07/27 23:35:07
1996-07-27 23:35:07 +00:00
ewt 3a6dab5bb4 cpio filelists go in $ROOT/var/tmp
CVS patchset: 928
CVS date: 1996/07/25 16:39:01
1996-07-25 16:39:01 +00:00
ewt 4441898dd0 removed unused variable
CVS patchset: 925
CVS date: 1996/07/23 15:47:06
1996-07-23 15:47:06 +00:00
marc 74853f39dd move ensureOlder() -> rpmEnsureOlder(), and make it public
CVS patchset: 913
CVS date: 1996/07/22 18:32:03
1996-07-22 18:32:03 +00:00
ewt d597761fe0 install v2 and v1 packages despite OS field, don't refuse to install all
of them

CVS patchset: 897
CVS date: 1996/07/19 22:31:37
1996-07-19 22:31:37 +00:00
ewt 57907afa36 v2 packages included improper OS tags, so ignore them
CVS patchset: 892
CVS date: 1996/07/18 21:42:12
1996-07-18 21:42:12 +00:00
ewt 7ac283b75a 1) checks gzread() properly <blush>
2) returns on bad arch/os <blush>

CVS patchset: 849
CVS date: 1996/07/16 03:43:13
1996-07-16 03:43:13 +00:00
ewt 2320fb3fc0 1) check OS's at install time
2) checks return code from gzread()

CVS patchset: 847
CVS date: 1996/07/16 03:37:07
1996-07-16 03:37:07 +00:00
ewt d2028b29aa fixed nasty bug w/ arg list passed to cpio wasn't getting NULL terminated
when a /tmp filelist was used

CVS patchset: 806
CVS date: 1996/07/13 22:18:48
1996-07-13 22:18:48 +00:00
ewt 09b573f5dc fixed error message for packages which are not relocateable
CVS patchset: 785
CVS date: 1996/07/11 15:48:21
1996-07-11 15:48:21 +00:00
ewt 42f7afa1f7 changes to set RPMTAG_INSTALLPREFIX correctly
CVS patchset: 765
CVS date: 1996/07/10 14:11:19
1996-07-10 14:11:19 +00:00
ewt 5f0b82b4f5 supports relocateable packages
CVS patchset: 758
CVS date: 1996/07/10 02:33:38
1996-07-10 02:33:38 +00:00
root 6d52748338 print architecture name if architecture error
CVS patchset: 739
CVS date: 1996/07/07 22:38:57
1996-07-07 22:38:57 +00:00
ewt 30b58fb9bd added handling for arch strings, INSTALL_NOARCH flag
CVS patchset: 723
CVS date: 1996/07/03 02:55:03
1996-07-03 02:55:03 +00:00
ewt 30fb564859 added code to pass numeric arg to scripts
CVS patchset: 701
CVS date: 1996/06/28 14:38:12
1996-06-28 14:38:12 +00:00
ewt a6681aebd2 oops
CVS patchset: 697
CVS date: 1996/06/27 20:52:29
1996-06-27 20:52:29 +00:00
ewt 09522d7d04 when installs are done with a --root, the getpwent() stuff needs to
happen in a chroot(). RPM forks itself to do so.

CVS patchset: 675
CVS date: 1996/06/27 17:18:07
1996-06-27 17:18:07 +00:00
ewt 571888e3a2 merged rpmlib.h and package.h
CVS patchset: 641
CVS date: 1996/06/17 19:43:55
1996-06-17 19:43:55 +00:00
root 2c31a7a901 fixed chmod(symlink) bug
CVS patchset: 605
CVS date: 1996/06/04 22:53:56
1996-06-04 22:53:56 +00:00
root 196951db61 set the mode always when installing (for %attr() support)
CVS patchset: 592
CVS date: 1996/05/23 02:42:51
1996-05-23 02:42:51 +00:00
root a6b6d18e5c use PATH to find cpio
CVS patchset: 586
CVS date: 1996/05/22 19:39:24
1996-05-22 19:39:24 +00:00
root 4768c9cca2 pass "upgrade" arg to pre/post when upgrading
CVS patchset: 585
CVS date: 1996/05/22 19:30:48
1996-05-22 19:30:48 +00:00
ewt c1b755b881 uses a temp file to pass big file lists to cpio
CVS patchset: 559
CVS date: 1996/05/07 03:21:44
1996-05-07 03:21:44 +00:00
ewt 6156911e0f added INSTALL_NOSCRIPTS
CVS patchset: 545
CVS date: 1996/04/15 22:22:50
1996-04-15 22:22:50 +00:00
ewt 434d04c5d7 fixed return codes
CVS patchset: 537
CVS date: 1996/04/15 21:09:40
1996-04-15 21:09:40 +00:00
ewt 2db2a25a6d added support for excluded documentation files
CVS patchset: 510
CVS date: 1996/03/29 20:52:03
1996-03-29 20:52:03 +00:00
ewt c179616796 frees source package headers (when available)
CVS patchset: 500
CVS date: 1996/03/29 19:40:08
1996-03-29 19:40:08 +00:00
ewt 00377d6ae5 don't back up directories marked as config files, even if they already
exist

CVS patchset: 446
CVS date: 1996/03/01 03:28:33
1996-03-01 03:28:33 +00:00
ewt cd07a9b057 switched the ordering in the decision process for how config files are
upgraded

CVS patchset: 445
CVS date: 1996/03/01 01:59:26
1996-03-01 01:59:26 +00:00
root 8d334d7ec6 made logic that for handling config files during installs much smarter
CVS patchset: 439
CVS date: 1996/02/29 03:38:33
1996-02-29 03:38:33 +00:00
ewt fbb56975fb fixes for some silly bugs
CVS patchset: 428
CVS date: 1996/02/26 22:53:35
1996-02-26 22:53:35 +00:00
ewt fe37f884f1 checks the architecure before installing binary packages
CVS patchset: 427
CVS date: 1996/02/26 22:45:24
1996-02-26 22:45:24 +00:00
ewt 45061be267 checks for upgrades to old versions of packages and gives an appropriate
error

CVS patchset: 421
CVS date: 1996/02/25 22:11:00
1996-02-25 22:11:00 +00:00
ewt a923c3297f made --percent look like it did in RPM 1.x
CVS patchset: 415
CVS date: 1996/02/24 23:46:09
1996-02-24 23:46:09 +00:00
root 42a026ec22 files with the same md5 shouldn't cause conflicts
CVS patchset: 410
CVS date: 1996/02/23 16:21:06
1996-02-23 16:21:06 +00:00
ewt d7bd6eaa4d variable was initialized wrong - fixed
CVS patchset: 382
CVS date: 1996/02/21 18:09:31
1996-02-21 18:09:31 +00:00
ewt dc21c59ee6 added upgrading
CVS patchset: 366
CVS date: 1996/02/20 21:54:02
1996-02-20 21:54:02 +00:00
ewt 96493b6e68 should flush after handling INSTALL_PRINTLABEL
CVS patchset: 339
CVS date: 1996/02/20 00:24:43
1996-02-20 00:24:43 +00:00
ewt 76dc38a451 1) added INSTALL_PRINTLABEL support
2) shouldn't update header's we've freed

CVS patchset: 336
CVS date: 1996/02/20 00:17:51
1996-02-20 00:17:51 +00:00
ewt 6ff596b90a 11) removed silly debug message
2) fixed problem with unarchiving files containing shell globbing characters

CVS patchset: 332
CVS date: 1996/02/19 23:34:25
1996-02-19 23:34:25 +00:00
root dfc6cc33d2 shouldn't reference variables pointing into a header after the header has
been freed

CVS patchset: 326
CVS date: 1996/02/19 22:15:38
1996-02-19 22:15:38 +00:00
ewt c3f2ff1740 marks replaced files during installs
CVS patchset: 287
CVS date: 1996/02/15 21:08:48
1996-02-15 21:08:48 +00:00
ewt 90f8252951 checks for directory existence before trying to create one
CVS patchset: 275
CVS date: 1996/02/14 22:20:08
1996-02-14 22:20:08 +00:00
ewt 84b62fd459 fixed to installArchive()
1) detect dead child correctly
2) handle all files when read() from pipe returns many of them

CVS patchset: 274
CVS date: 1996/02/14 21:56:29
1996-02-14 21:56:29 +00:00
ewt 86e09a97bc handles reinstallation of a binary package
CVS patchset: 273
CVS date: 1996/02/14 21:26:21
1996-02-14 21:26:21 +00:00
ewt 9b940881d1 added ability to install a source package and find the spec file name
CVS patchset: 269
CVS date: 1996/02/14 20:09:14
1996-02-14 20:09:14 +00:00
root 2a9f4dea65 Understands source packages
CVS patchset: 264
CVS date: 1996/02/14 17:54:37
1996-02-14 17:54:37 +00:00
ewt c1cc9bf1f2 won't leave 0.0 files around which are SUID if they're supposed to be
owned by someone else

CVS patchset: 256
CVS date: 1996/01/30 17:35:13
1996-01-30 17:35:13 +00:00
ewt 37ee0cf5e2 adjusted config file checking to adjust for the prefix
CVS patchset: 243
CVS date: 1996/01/29 23:27:12
1996-01-29 23:27:12 +00:00
ewt efcea4901c 1) should handle config files well
2) created directories should get umask independent permissions
3) fixed notification handling
4) creates file states list, install time

CVS patchset: 237
CVS date: 1996/01/29 19:37:59
1996-01-29 19:37:59 +00:00
root e1922a0bb1 started work on file sharing, added --hash and --percent
CVS patchset: 219
CVS date: 1996/01/22 21:13:12
1996-01-22 21:13:12 +00:00
ewt 42ecff8eb9 1) checks for pacakges already installed, but doesn't handle overrides
correctly
2) sets file ownderships by symbolic name when they are available
3) creates directories when needed

CVS patchset: 207
CVS date: 1996/01/14 19:32:17
1996-01-14 19:32:17 +00:00
ewt 6ca62ee7d0 Initial revision
CVS patchset: 177
CVS date: 1996/01/08 19:31:44
1996-01-08 19:31:44 +00:00