[Prelude Hybrid IDS] #166: Prewikka: Bug in setup.py install --root dir (Patch inside)

Prelude Hybrid IDS <[email protected]>
Newsgroups gmane.comp.security.ids.prelude.devel
Message-ID <[email protected]>
#166: Prewikka: Bug in setup.py install --root dir (Patch inside)
--------------------------+-------------------------------------------------
 Reporter:  Stephan Gitz  |       Owner:  yoann                   
     Type:  defect        |      Status:  new                     
 Priority:  normal        |   Milestone:  Prewikka 0.9.6          
Component:  prewikka      |     Version:  0.9                     
 Severity:  normal        |    Keywords:  Prewikka setup.py --root
--------------------------+-------------------------------------------------
 there is a Bug in the setup.py-script from Prewikka for all that want to
 install prewikka with "setup.py install --root dir". A patch is on the End
 of this Report.
 Thank you,

 Stephan Gitz

 -------------------------
 {{{
 --- prewikka-0.9.5/setup.py     2006-05-04 10:07:32.000000000 +0200
 +++ setup.py    2006-07-16 13:34:59.000000000 +0200
 @@ -124,9 +124,9 @@
          install.finalize_options(self)

      def install_conf(self):
 -        self.mkpath(self.root or "" + self.conf_prefix)
 +        self.mkpath((self.root or "") + self.conf_prefix)
          for file in self.distribution.conf_files:
 -            dest = self.root or "" + self.conf_prefix + "/" +
 os.path.basename(file)
 +            dest = (self.root or "") + self.conf_prefix + "/" +
 os.path.basename(file)
              if os.path.exists(dest):
                  dest += "-dist"
              self.copy_file(file, dest)
 @@ -149,8 +149,8 @@
                      "share/prewikka/htdocs",
                      "share/prewikka/htdocs/images",
 "share/prewikka/htdocs/js", "share/prewikka/htdocs/css",
                      "share/prewikka/database", "share/prewikka/cgi-bin"):
 -            os.chmod(self.root or "" + self.prefix + "/" + dir, 0755)
 -        os.chmod(self.root or "" + self.conf_prefix, 0755)
 +            os.chmod((self.root or "") + self.prefix + "/" + dir, 0755)
 +        os.chmod((self.root or "") + self.conf_prefix, 0755)

          if not self.dry_run:
              for filename in self.get_outputs():
  }}}

-- 
Ticket URL: <https://trac.prelude-ids.org/ticket/166>
Prelude Hybrid IDS <http://www.prelude-ids.org>
The Prelude Hybrid Intrusion Detection System suite

_______________________________________________
Prelude-devel site list
[email protected]
http://www.prelude-ids.org/mailman/listinfo/prelude-devel
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.