On Mon, 2017-09-25 at 20:42 +0545, Ritesh Raj Sarraf wrote: > > Isn't '/etc/apt/sources.list' and expected file ? What environment > are you building it under ? > Irrespective, I think a better check would be to look out for > '/usr/bin/apt' or maybe '/usr/bin/dpkg'
Since both, apt and apt-get, come from the same package; reliance on either of the file should be safe to assume that it is an apt based system. rrs@priyasi:~/rrs-home/Community/Packaging/apport (master)$ dpkg -S /usr/bin/apt-get apt: /usr/bin/apt-get 20:44 ♒♒♒ ☺ rrs@priyasi:~/rrs-home/Community/Packaging/apport (master)$ dpkg -S /usr/bin/apt apt: /usr/bin/apt 20:44 ♒♒♒ ☺ -- Ritesh Raj Sarraf | http://people.debian.org/~rrs Debian - The Universal Operating System
signature.asc
Description: This is a digitally signed message part