OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 11-Jan-2006 21:12:59
Branch: HEAD Handle: 2006011120125701
Modified files:
openpkg-src/cvs cvs.patch.rse cvs.spec
Log:
Fix importinfo processing.
Submitted by: Robin Woehler
Summary:
Revision Changes Path
1.26 +24 -13 openpkg-src/cvs/cvs.patch.rse
1.109 +1 -1 openpkg-src/cvs/cvs.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/cvs/cvs.patch.rse
============================================================================
$ cvs diff -u -r1.25 -r1.26 cvs.patch.rse
--- openpkg-src/cvs/cvs.patch.rse 7 Oct 2005 11:41:35 -0000 1.25
+++ openpkg-src/cvs/cvs.patch.rse 11 Jan 2006 20:12:57 -0000 1.26
@@ -658,7 +658,7 @@
retrieving revision 1.1.1.20
diff -u -d -r1.1.1.20 cvs.h
--- src/cvs.h 2 Oct 2005 15:17:20 -0000 1.1.1.20
-+++ src/cvs.h 5 Oct 2005 10:48:43 -0000
++++ src/cvs.h 12 Oct 2005 18:12:24 -0000
@@ -12,6 +12,36 @@
*/
@@ -1201,8 +1201,8 @@
retrieving revision 1.1.1.13
diff -u -d -r1.1.1.13 import.c
--- src/import.c 4 Sep 2005 00:27:44 -0000 1.1.1.13
-+++ src/import.c 5 Oct 2005 10:42:45 -0000
-@@ -70,6 +70,141 @@
++++ src/import.c 11 Jan 2006 19:57:27 -0000
+@@ -70,6 +70,152 @@
NULL
};
@@ -1218,6 +1218,7 @@
+ struct dirent *dp;
+ int err = 0;
+ List *dirlist = NULL;
++ char *fullname = NULL;
+
+ if ((dirp = CVS_OPENDIR(thisdir)) == NULL) {
+ error(0, errno, "cannot open directory");
@@ -1225,18 +1226,24 @@
+ }
+ else {
+ errno = 0;
-+ while ((dp = readdir(dirp)) != NULL) {
++ while ((dp = CVS_READDIR(dirp)) != NULL) {
+ if (strcmp(dp->d_name, ".") == 0 || strcmp(dp->d_name, "..") == 0)
+ goto one_more_time_boys;
+ if (strcmp(dp->d_name, CVSADM) == 0)
+ goto one_more_time_boys;
+ if (ign_name(dp->d_name))
+ goto one_more_time_boys;
++ if (fullname != NULL) {
++ free(fullname);
++ fullname = NULL;
++ }
++ fullname = xmalloc(strlen(thisdir) + 1 + strlen(dp->d_name)+1);
++ (void)sprintf(fullname, "%s/%s", thisdir, dp->d_name);
+ if (
+#ifdef DT_DIR
-+ (dp->d_type == DT_DIR || (dp->d_type == DT_UNKNOWN && isdir
(dp->d_name)))
++ (dp->d_type == DT_DIR || (dp->d_type == DT_UNKNOWN && isdir
(fullname)))
+#else
-+ isdir (dp->d_name)
++ isdir (fullname)
+#endif
+ && !wrap_name_has(dp->d_name, WRAP_TOCVS)
+ ) {
@@ -1249,9 +1256,9 @@
+ }
+ else if (
+#ifdef DT_DIR
-+ dp->d_type == DT_LNK || (dp->d_type == DT_UNKNOWN && islink
(dp->d_name))
++ dp->d_type == DT_LNK || (dp->d_type == DT_UNKNOWN && islink
(fullname))
+#else
-+ islink (dp->d_name)
++ islink (fullname)
+#endif
+ ) {
+ err++;
@@ -1271,11 +1278,15 @@
+ one_more_time_boys:
+ errno = 0;
+ }
++ if (fullname != NULL) {
++ free(fullname);
++ fullname = NULL;
++ }
+ if (errno != 0) {
+ error(0, errno, "cannot read directory");
+ err++;
+ }
-+ (void)closedir(dirp);
++ (void)CVS_CLOSEDIR(dirp);
+ }
+ if (dirlist != NULL) {
+ Node *head, *p;
@@ -1344,7 +1355,7 @@
int
import (int argc, char **argv)
{
-@@ -320,6 +455,12 @@
+@@ -320,6 +466,12 @@
error (1, 0, "attempt to import the repository");
}
@@ -1357,7 +1368,7 @@
ulist = getlist ();
p = getnode ();
p->type = UPDATE;
-@@ -329,6 +470,9 @@
+@@ -329,6 +481,9 @@
li->type = T_TITLE;
li->tag = xstrdup (vbranch);
li->rev_old = li->rev_new = NULL;
@@ -1367,7 +1378,7 @@
p->data = li;
(void) addnode (ulist, p);
do_verify (&message, repository, ulist);
-@@ -719,7 +863,11 @@
+@@ -719,7 +874,11 @@
*/
if (add_tags (vers->srcfile, vfile, vtag, targc, targv))
retval = 1;
@@ -3486,7 +3497,7 @@
retrieving revision 1.1.1.18
diff -u -d -r1.1.1.18 subr.c
--- src/subr.c 2 Oct 2005 15:17:21 -0000 1.1.1.18
-+++ src/subr.c 4 Oct 2005 19:23:41 -0000
++++ src/subr.c 27 Oct 2005 07:49:14 -0000
@@ -293,6 +293,22 @@
uid_t uid;
#endif
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/cvs/cvs.spec
============================================================================
$ cvs diff -u -r1.108 -r1.109 cvs.spec
--- openpkg-src/cvs/cvs.spec 1 Jan 2006 13:12:50 -0000 1.108
+++ openpkg-src/cvs/cvs.spec 11 Jan 2006 20:12:58 -0000 1.109
@@ -37,7 +37,7 @@
Group: SCM
License: GPL
Version: %{V_cvs}
-Release: 20051120
+Release: 20060111
# package options
%option with_fsl yes
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]