271 |
repository, |
repository, |
272 |
NULL); |
NULL); |
273 |
} |
} |
|
do_verify (&message, repository); |
|
274 |
msglen = message == NULL ? 0 : strlen (message); |
msglen = message == NULL ? 0 : strlen (message); |
275 |
if (msglen == 0 || message[msglen - 1] != '\n') |
if (msglen == 0 || message[msglen - 1] != '\n') |
276 |
{ |
{ |
333 |
error (1, 0, "attempt to import the repository"); |
error (1, 0, "attempt to import the repository"); |
334 |
} |
} |
335 |
|
|
336 |
|
ulist = getlist (); |
337 |
|
p = getnode (); |
338 |
|
p->type = UPDATE; |
339 |
|
p->delproc = update_delproc; |
340 |
|
p->key = xstrdup ("- Imported sources"); |
341 |
|
li = xmalloc (sizeof (struct logfile_info)); |
342 |
|
li->type = T_TITLE; |
343 |
|
li->tag = xstrdup (vbranch); |
344 |
|
li->rev_old = li->rev_new = NULL; |
345 |
|
p->data = li; |
346 |
|
(void) addnode (ulist, p); |
347 |
|
do_verify (&message, repository, ulist); |
348 |
|
|
349 |
/* |
/* |
350 |
* Make all newly created directories writable. Should really use a more |
* Make all newly created directories writable. Should really use a more |
351 |
* sophisticated security mechanism here. |
* sophisticated security mechanism here. |
432 |
/* |
/* |
433 |
* Write out the logfile and clean up. |
* Write out the logfile and clean up. |
434 |
*/ |
*/ |
|
ulist = getlist (); |
|
|
p = getnode (); |
|
|
p->type = UPDATE; |
|
|
p->delproc = update_delproc; |
|
|
p->key = xstrdup ("- Imported sources"); |
|
|
li = xmalloc (sizeof (struct logfile_info)); |
|
|
li->type = T_TITLE; |
|
|
li->tag = xstrdup (vbranch); |
|
|
li->rev_old = li->rev_new = NULL; |
|
|
p->data = li; |
|
|
(void) addnode (ulist, p); |
|
435 |
Update_Logfile (repository, message, logfp, ulist); |
Update_Logfile (repository, message, logfp, ulist); |
436 |
dellist (&ulist); |
dellist (&ulist); |
437 |
if (fclose (logfp) < 0) |
if (fclose (logfp) < 0) |