Commit | Line | Data |
---|---|---|
59f0d218 FF |
1 | diff -u -r ../apt-0.9.16.1/apt-pkg/deb/debsystem.cc ./apt-pkg/deb/debsystem.cc |
2 | --- ../apt-0.9.16.1/apt-pkg/deb/debsystem.cc 2014-03-15 17:23:45.000000000 +0100 | |
3 | +++ ./apt-pkg/deb/debsystem.cc 2014-03-27 13:39:56.648378401 +0100 | |
4 | @@ -187,8 +187,8 @@ | |
5 | which is yet to be determined. The functions in pkgcachegen should | |
6 | be the only users of these */ | |
7 | Cnf.CndSet("Dir::State::extended_states", "extended_states"); | |
8 | - Cnf.CndSet("Dir::State::status","/var/lib/dpkg/status"); | |
9 | - Cnf.CndSet("Dir::Bin::dpkg","/usr/bin/dpkg"); | |
10 | + Cnf.CndSet("Dir::State::status","@TERMUX_PREFIX@/var/lib/dpkg/status"); | |
11 | + Cnf.CndSet("Dir::Bin::dpkg","@TERMUX_PREFIX@/bin/dpkg"); | |
12 | ||
13 | if (d->StatusFile) { | |
14 | delete d->StatusFile; | |
15 | @@ -216,9 +216,9 @@ | |
16 | signed debSystem::Score(Configuration const &Cnf) | |
17 | { | |
18 | signed Score = 0; | |
19 | - if (FileExists(Cnf.FindFile("Dir::State::status","/var/lib/dpkg/status")) == true) | |
20 | + if (FileExists(Cnf.FindFile("Dir::State::status","@TERMUX_PREFIX@/var/lib/dpkg/status")) == true) | |
21 | Score += 10; | |
22 | - if (FileExists(Cnf.FindFile("Dir::Bin::dpkg","/usr/bin/dpkg")) == true) | |
23 | + if (FileExists(Cnf.FindFile("Dir::Bin::dpkg","@TERMUX_PREFIX@/bin/dpkg")) == true) | |
24 | Score += 10; | |
25 | if (FileExists("/etc/debian_version") == true) | |
26 | Score += 10; |