|
From: Pascal B. <pb...@us...> - 2001-11-28 18:15:54
|
Update of /cvsroot/mpkg/mpkg/src
In directory usw-pr-cvs1:/tmp/cvs-serv25210/src
Modified Files:
pkg.c
Log Message:
* src/pkg.c (make_pkg): Forbid to have name more than 9 char, when build
a Solaris package.
Index: pkg.c
===================================================================
RCS file: /cvsroot/mpkg/mpkg/src/pkg.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pkg.c 2001/11/28 14:20:46 1.3
--- pkg.c 2001/11/28 18:15:51 1.4
***************
*** 1,21 ****
! /*
! *
! * AT&T package gateway for Meta pkg (mpkg).
! *
! * Copyright 2001 by CubicSoft.
! * Copyright 1999-2001 by Easy Software Products.
! *
! * This program is free software; you can redistribute it and/or modify
! * it under the terms of the GNU General Public License as published by
! * the Free Software Foundation; either version 2, or (at your option)
! * any later version.
! *
! * This program is distributed in the hope that it will be useful,
! * but WITHOUT ANY WARRANTY; without even the implied warranty of
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! * GNU General Public License for more details.
! *
! */
#include "mpkg.h"
--- 1,16 ----
! /* AT&T package gateway for Meta pkg (mpkg).
+ Copyright 2001 by CubicSoft.
+ Copyright 1999-2001 by Easy Software Products.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details. */
#include "mpkg.h"
***************
*** 102,106 ****
curtime = time (NULL);
curdate = gmtime (&curtime);
!
fprintf (fp, "PKG=%s\n", prodname);
fprintf (fp, "NAME=%s\n", dist->product);
--- 97,107 ----
curtime = time (NULL);
curdate = gmtime (&curtime);
!
! if (strlen(prodname) > 9)
! {
! fprintf (stderr, "%s: The package name (%s) must have less than 9 chars.\n",
! prodname);
! return 1;
! }
fprintf (fp, "PKG=%s\n", prodname);
fprintf (fp, "NAME=%s\n", dist->product);
|