Project

General

Profile

Submit #3201 ยป fix_make_search_info_display.patch

htse, 08/17/2019 05:26 PM

View differences:

Mk/bsd.port.subdir.mk
430 430
	    if (length(info))  parms[4]  = tolower(info);  if (length(xinfo))  xparms[4]  = tolower(xinfo); \
431 431
	    if (length(maint)) parms[6]  = tolower(maint); if (length(xmaint)) xparms[6]  = tolower(xmaint); \
432 432
	    if (length(cat))   parms[7]  = tolower(cat);   if (length(xcat))   xparms[7]  = tolower(xcat); \
433
	    if (length(bdeps)) parms[8]  = tolower(bdeps); if (length(xbdeps)) xparms[8]  = tolower(xbdeps); \
434
	    if (length(rdeps)) parms[9]  = tolower(rdeps); if (length(xrdeps)) xparms[9]  = tolower(xrdeps); \
435
	    if (length(www))   parms[10] = tolower(www);   if (length(xwww))   xparms[10] = tolower(xwww); \
433
	    if (length(bdeps)) parms[11]  = tolower(bdeps); if (length(xbdeps)) xparms[11]  = tolower(xbdeps); \
434
	    if (length(rdeps)) parms[12]  = tolower(rdeps); if (length(xrdeps)) xparms[12]  = tolower(xrdeps); \
435
	    if (length(www))   parms[13] = tolower(www);   if (length(xwww))   xparms[13] = tolower(xwww); \
436 436
	  } else { \
437 437
	    if (length(name))  parms[1]  = name;  if (length(xname))  xparms[1]  = xname; \
438 438
	    if (length(path))  parms[2]  = path;  if (length(xpath))  xparms[2]  = xpath; \
439 439
	    if (length(info))  parms[4]  = info;  if (length(xinfo))  xparms[4]  = xinfo; \
440 440
	    if (length(maint)) parms[6]  = maint; if (length(xmaint)) xparms[6]  = xmaint; \
441 441
	    if (length(cat))   parms[7]  = cat;   if (length(xcat))   xparms[7]  = xcat; \
442
	    if (length(bdeps)) parms[8]  = bdeps; if (length(xbdeps)) xparms[8]  = xbdeps; \
443
	    if (length(rdeps)) parms[9]  = rdeps; if (length(xrdeps)) xparms[9]  = xrdeps; \
444
	    if (length(www))   parms[10] = www;   if (length(xwww))   xparms[10] = xwww; \
442
	    if (length(bdeps)) parms[11]  = bdeps; if (length(xbdeps)) xparms[11]  = xbdeps; \
443
	    if (length(rdeps)) parms[12]  = rdeps; if (length(xrdeps)) xparms[12]  = xrdeps; \
444
	    if (length(www))   parms[13] = www;   if (length(xwww))   xparms[13] = xwww; \
445 445
	  } \
446 446
	    fields["name"]  = 1;  names[1]  = "Port"; \
447 447
	    fields["path"]  = 2;  names[2]  = "Path"; \
448 448
	    fields["info"]  = 4;  names[4]  = "Info"; \
449 449
	    fields["maint"] = 6;  names[6]  = "Maint"; \
450 450
	    fields["cat"]   = 7;  names[7]  = "Index"; \
451
	    fields["bdeps"] = 8;  names[8]  = "B-deps"; \
452
	    fields["rdeps"] = 9;  names[9]  = "R-deps"; \
453
	    fields["www"]   = 10; names[10] = "WWW"; \
451
	    fields["bdeps"] = 11;  names[11]  = "B-deps"; \
452
	    fields["rdeps"] = 12;  names[12]  = "R-deps"; \
453
	    fields["www"]   = 13; names[13] = "WWW"; \
454 454
	    split(display, d, /,[ \t]*/); \
455 455
	    split(xdisplay, xd, /,[ \t]*/); \
456 456
	    for (i in d) { \
......
476 476
	      if ((icase ? tolower($$i) : $$i) ~ xparms[i]) \
477 477
	        next; \
478 478
	    found = 0; \
479
	    for (i = 1; i < 11; i++) \
479
	    for (i = 1; i < 14; i++) \
480 480
	      if (i in disp) { \
481 481
	        if (xkeylim && (icase ? tolower($$i) : $$i) ~ xkey) \
482 482
	          next; \
......
485 485
	      } \
486 486
	    if (keylim && !found) \
487 487
	      next; \
488
	    for (i = 1; i < 11; i++) \
488
	    for (i = 1; i < 14; i++) \
489 489
	      if (i in disp) \
490 490
	        printf("%s:\t%s\n", names[i], $$i); \
491 491
	    print(""); \
......
501 501
	        fields["name"]  = 1;  names[1]  = "Port"; \
502 502
	        fields["destination"]  = 2;  names[2]  = "Moved"; \
503 503
	        fields["date"]  = 3;  names[3]  = "Date"; \
504
	        fileds["reason"] = 4;  names[4] = "Reason"; \
504
	        fields["reason"] = 4;  names[4] = "Reason"; \
505 505
	     } \
506 506
	    { \
507 507
		oldname = $$1;  newname = $$2; \
    (1-1/1)