[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Does --old work anymore?



Hi,

	I quote from dpkg-deb/build.c :

  if (!oldformatflag) {
    if (fstat(gzfd,&datastab)) ohshite("_(failed to fstat tmpfile
(data))");
    if (fprintf(ar,
                "%s"
                DATAMEMBER "%-12lu0     0     100644  %-10ld`\n",
                (controlstab.st_size & 1) ? "\n" : "",
                (unsigned long)thetime,
                (long)datastab.st_size) == EOF)
      werr(debar);
  
    if (lseek(gzfd,0,SEEK_SET)) ohshite(_("failed to rewind tmpfile
(data)"));
    fd_fd_copy(gzfd, fileno(ar), -1, _("cat (data)"));
    
    if (datastab.st_size & 1)
      if (putc('\n',ar) == EOF)
        werr(debar);
  }
  if (fclose(ar)) werr(debar);
     
  exit(0);

	It seems to me, from the above code that the datamember wont get
written out if the old format is selected. Is there any purpose to the
test for oldformatflag then?

Thanks,
Jor-el



Reply to: