|
From: Philippe F. <pfe...@us...> - 2002-07-04 17:38:57
|
Update of /cvsroot/mpkg/mpkg/src
In directory usw-pr-cvs1:/tmp/cvs-serv27616
Modified Files:
rpm.c
Log Message:
correct a bug when using pre-remove scripts
Index: rpm.c
===================================================================
RCS file: /cvsroot/mpkg/mpkg/src/rpm.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** rpm.c 30 Apr 2002 07:55:38 -0000 1.6
--- rpm.c 4 Jul 2002 17:38:54 -0000 1.7
***************
*** 255,261 ****
}
! for (i = dist->num_commands, c = dist->commands; i > 0; i--, c++)
! if (c->type == COMMAND_PRE_REMOVE)
! fprintf (fp, "%s\n", c->command);
if (dist->num_commands)
--- 255,265 ----
}
! if (dist->num_commands)
! {
! fputs ("%preun\n", fp);
! for (i = dist->num_commands, c = dist->commands; i > 0; i--, c++)
! if (c->type == COMMAND_PRE_REMOVE)
! fprintf (fp, "%s\n", c->command);
! }
if (dist->num_commands)
|