2 static const char rcsid[] =
7 * FreeBSD install - a package for the installation and maintainance
8 * of non-core utilities.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
22 * Routines to assist with PLIST_FMT_VER numbers in the packing
25 * Following is the PLIST_FMT_VER history:
26 * 1.0 - Initial revision;
27 * 1.1 - When recording/checking checksum of symlink use hash of readlink()
28 * value insted of the hash of an object this links points to.
36 verscmp(Package *pkg, int major, int minor)
40 if ((pkg->fmtver_maj < major) || (pkg->fmtver_maj == major &&
41 pkg->fmtver_mnr < minor))
43 else if ((pkg->fmtver_maj > major) || (pkg->fmtver_maj == major &&
44 pkg->fmtver_mnr > minor))