diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-11-04 14:48:36 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-11-05 12:21:33 +0100 |
commit | 23e64f6d0facf9610c1042326ad9850e071e8349 (patch) | |
tree | cd1beda585ecbb992076838403ef775168e20d08 /methods/rsh.h | |
parent | 30c8107e9c56d7d78dcf9136f94aeed9d631dfb3 (diff) | |
download | apt-23e64f6d0facf9610c1042326ad9850e071e8349.tar.gz |
allow acquire method specific options via Binary scope
Allows users who know what they are getting themselves into with this
trick to e.g. disable privilege dropping for e.g. file:// until they can
fix up the permissions on those repositories. It helps also the test
framework and people with a similar setup (= me) to run in less modified
environments.
Diffstat (limited to 'methods/rsh.h')
-rw-r--r-- | methods/rsh.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/methods/rsh.h b/methods/rsh.h index e6839711b..9ca14425f 100644 --- a/methods/rsh.h +++ b/methods/rsh.h @@ -54,9 +54,11 @@ class RSHConn }; #include <apt-pkg/acquire-method.h> +#include "aptmethod.h" -class RSHMethod : public pkgAcqMethod +class RSHMethod : public aptMethod { + std::string const Prog; virtual bool Fetch(FetchItem *Itm) APT_OVERRIDE; virtual bool Configuration(std::string Message) APT_OVERRIDE; @@ -69,7 +71,7 @@ class RSHMethod : public pkgAcqMethod public: - RSHMethod(); + RSHMethod(std::string const &Prog); }; #endif |