X-Git-Url: http://gitweb/?a=blobdiff_plain;ds=sidebyside;f=pkgadd.h;h=c69aab9513f4c512c69d5523023f932d88922139;hb=9a7adb608a4b3e207e2c80ebf316682e205c2cc6;hp=b5b53e2343f44aac791425a9226c60f52e41c889;hpb=1e0dfb6d09297f14827ed72e38dd48b4eb770e3f;p=pkgutils-cross.git diff --git a/pkgadd.h b/pkgadd.h index b5b53e2..c69aab9 100644 --- a/pkgadd.h +++ b/pkgadd.h @@ -30,7 +30,8 @@ #define PKGADD_CONF_MAXLINE 1024 enum rule_event_t { - UPGRADE + UPGRADE, + INSTALL }; struct rule_t { @@ -48,6 +49,7 @@ public: private: vector read_config() const; set make_keep_list(const set& files, const vector& rules) const; + set apply_install_rules(const string& name, pkginfo_t& info, const vector& rules); void find_rules(const vector& rules, rule_event_t event, vector& found) const; bool rule_applies_to_file(const rule_t& rule, const string& file) const; };