1#ifndef lint 2static const char rcsid[] = |
3 "$FreeBSD: head/usr.sbin/pkg_install/lib/deps.c 84745 2001-10-10 06:58:42Z sobomax $"; |
4#endif 5 6/* 7 * FreeBSD install - a package for the installation and maintainance 8 * of non-core utilities. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions --- 63 unchanged lines hidden (view full) --- 75 return err_cnt; 76} 77 78/* 79 * Check to see if pkgname1 depends on pkgname2. 80 * Returns 1 if depends, 0 if not, and -1 if error occured. 81 */ 82int |
83chkifdepends(const char *pkgname1, const char *pkgname2) |
84{ 85 char pkgdir[FILENAME_MAX]; 86 int errcode; 87 struct reqr_by_entry *rb_entry; 88 struct reqr_by_head *rb_list; 89 90 /* Check that pkgname2 is actually installed */ 91 snprintf(pkgdir, sizeof(pkgdir), "%s/%s", LOG_DIR, pkgname2); --- 88 unchanged lines hidden --- |