Re: A-A-P accepted into Debian

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Wichert Akkerman wrote:

> Previously Bram Moolenaar wrote:
> > It looks like Aap didn't detect that you are using a Debian system.
> > Could you try this (cd to the Aap directory first):
> > 
> > 	% python
> > 	>>> import os.path
> > 	>>> os.path.isdir("/etc/debian_version")
> 
> debian_version is a file, not a path so that is probably where it goes
> wrong.

Aha.  Try this patch then:

*** RecPython.py~	Thu Oct 30 20:17:56 2003
--- RecPython.py	Sat Nov  8 16:56:03 2003
***************
*** 692,698 ****
              return 0
  
      try:
!         if not os.path.isdir("/etc/debian_version"):
              return 0    # Not a Debian system.
          if not program_path("apt-get"):
              return 0    # apt-get is not available (or $PATH wrong)
--- 692,698 ----
              return 0
  
      try:
!         if not os.path.isfile("/etc/debian_version"):
              return 0    # Not a Debian system.
          if not program_path("apt-get"):
              return 0    # apt-get is not available (or $PATH wrong)

-- 
FIRST VILLAGER: We have found a witch.  May we burn her?
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.