Deleted Added
full compact
perform.c (155577) perform.c (161251)
1/*
2 * FreeBSD install - a package for the installation and maintainance
3 * of non-core utilities.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 5 unchanged lines hidden (view full) ---

14 * Jeremy D. Lea.
15 * 11 May 2002
16 *
17 * This is the version module. Based on pkg_version.pl by Bruce A. Mah.
18 *
19 */
20
21#include <sys/cdefs.h>
1/*
2 * FreeBSD install - a package for the installation and maintainance
3 * of non-core utilities.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 5 unchanged lines hidden (view full) ---

14 * Jeremy D. Lea.
15 * 11 May 2002
16 *
17 * This is the version module. Based on pkg_version.pl by Bruce A. Mah.
18 *
19 */
20
21#include <sys/cdefs.h>
22__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/version/perform.c 155577 2006-02-12 16:09:33Z krion $");
22__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/version/perform.c 161251 2006-08-12 18:32:51Z krion $");
23
24#include "lib.h"
25#include "version.h"
26#include <err.h>
27#include <fetch.h>
28#include <signal.h>
29
30FILE *IndexFile;

--- 223 unchanged lines hidden (view full) ---

254show_version(Package plist, const char *latest, const char *source)
255{
256 char *ch, tmp[PATH_MAX];
257 const char *ver;
258 int cmp = 0;
259
260 if (!plist.name || strlen(plist.name) == 0)
261 return;
23
24#include "lib.h"
25#include "version.h"
26#include <err.h>
27#include <fetch.h>
28#include <signal.h>
29
30FILE *IndexFile;

--- 223 unchanged lines hidden (view full) ---

254show_version(Package plist, const char *latest, const char *source)
255{
256 char *ch, tmp[PATH_MAX];
257 const char *ver;
258 int cmp = 0;
259
260 if (!plist.name || strlen(plist.name) == 0)
261 return;
262 if (ShowOrigin != FALSE)
262 if (ShowOrigin != FALSE && plist.origin != NULL)
263 strlcpy(tmp, plist.origin, PATH_MAX);
264 else {
265 strlcpy(tmp, plist.name, PATH_MAX);
266 if (!Verbose) {
267 if ((ch = strrchr(tmp, '-')) != NULL)
268 ch[0] = '\0';
269 }
270 }

--- 137 unchanged lines hidden ---
263 strlcpy(tmp, plist.origin, PATH_MAX);
264 else {
265 strlcpy(tmp, plist.name, PATH_MAX);
266 if (!Verbose) {
267 if ((ch = strrchr(tmp, '-')) != NULL)
268 ch[0] = '\0';
269 }
270 }

--- 137 unchanged lines hidden ---