Skip to main content

check_cdbs

Function check_cdbs 

Source
pub fn check_cdbs(path: &Path) -> bool
Expand description

Check if a debian/rules file uses CDBS.

§Arguments

  • path - Path to the debian/rules file

§Returns

true if the file includes CDBS, false otherwise

§Examples

use debian_analyzer::rules::check_cdbs;
use std::path::Path;
assert!(!check_cdbs(Path::new("debian/rules")));