emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r113859: * package-test.el: Remove tar-package-build


From: Stefan Monnier
Subject: [Emacs-diffs] trunk r113859: * package-test.el: Remove tar-package-building functions. Tar file
Date: Wed, 14 Aug 2013 00:57:01 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 113859
revision-id: address@hidden
parent: address@hidden
author: Daniel Hackney <address@hidden>
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Tue 2013-08-13 20:56:58 -0400
message:
  * package-test.el: Remove tar-package-building functions.  Tar file
  used for testing is included in the repository.
  (package-test-install-texinfo, package-test-cleanup-built-files): Remove.
modified:
  test/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-8588
  test/automated/package-test.el 
packagetest.el-20130627091655-6mb005jio30t2i3i-1
=== modified file 'test/ChangeLog'
--- a/test/ChangeLog    2013-08-13 16:36:32 +0000
+++ b/test/ChangeLog    2013-08-14 00:56:58 +0000
@@ -1,3 +1,10 @@
+2013-08-14  Daniel Hackney  <address@hidden>
+
+       * package-test.el: Remove tar-package-building functions.  Tar file
+       used for testing is included in the repository.
+       (package-test-install-texinfo, package-test-cleanup-built-files):
+       Remove.
+
 2013-08-13  Fabián Ezequiel Gallina  <address@hidden>
 
        * automated/python-tests.el (python-imenu-create-index-4)

=== modified file 'test/automated/package-test.el'
--- a/test/automated/package-test.el    2013-07-11 16:01:26 +0000
+++ b/test/automated/package-test.el    2013-08-14 00:56:58 +0000
@@ -85,9 +85,6 @@
   (expand-file-name "archive-contents" package-test-data-dir)
   "Path to a static copy of \"archive-contents\".")
 
-(defvar package-test-built-file-suffixes '(".tar" "/dir" "/*.info")
-  "Remove these files when cleaning up a built package.")
-
 (cl-defmacro with-package-test ((&optional &key file
                                            basedir
                                            install
@@ -142,33 +139,6 @@
     (let ((help-xref-following t))
       ,@body)))
 
-(autoload 'makeinfo-buffer "makeinfo")
-(defvar compilation-in-progress)
-
-(defun package-test-install-texinfo (file)
-  "Install from texinfo FILE.
-
-FILE should be a .texinfo file relative to the current
-`default-directory'"
-  (require 'info)
-  (let* ((full-file (expand-file-name file))
-         (info-file (replace-regexp-in-string "\\.texi\\'" ".info" full-file))
-         (old-info-defn (symbol-function 'Info-revert-find-node)))
-    (require 'info)
-    (setf (symbol-function 'Info-revert-find-node) #'ignore)
-    (with-current-buffer (find-file-literally full-file)
-      (unwind-protect
-          (progn
-            (makeinfo-buffer)
-            ;; Give `makeinfo-buffer' a chance to finish
-            (while compilation-in-progress
-              (sit-for 0.1))
-            (call-process "ginstall-info" nil nil nil
-                          (format "--info-dir=%s" default-directory)
-                          (format "%s" info-file)))
-        (kill-buffer)
-        (setf (symbol-function 'Info-revert-find-node) old-info-defn)))))
-
 (defun package-test-strip-version (dir)
   (replace-regexp-in-string "-pkg\\.el\\'" "" (package--description-file dir)))
 
@@ -178,14 +148,6 @@
    '(lambda (item) (file-expand-wildcards (concat base item)))
    suffix-list))
 
-(defun package-test-cleanup-built-files (dir)
-  "Remove files which were the result of creating a tar archive.
-
-DIR is the base name of the package directory, without the trailing slash"
-  (let* ((pkg-dirname (file-name-nondirectory dir)))
-    (dolist (file (package-test-suffix-matches dir 
package-test-built-file-suffixes))
-      (delete-file file))))
-
 (defvar tar-parse-info)
 (declare-function tar-header-name "tar-mode" (cl-x) t) ; defstruct
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]