Skip to content
Commits on Jul 14, 2010
  1. package-test: Use new time format in tests.

    Rather than simple strings, the time values (for :created and :updated) are now
    expected to have the same format as returned from `parse-time-string'. Update
    the tests to reflect this.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jul 13, 2010
Commits on Jul 13, 2010
  1. Version bump to 1.9.1.

    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jul 13, 2010
  2. package-load-rest-from-descriptor: Expand scope of `condition-case'.

    Allows it to catch signals from `package-info-file' as well as the rest of the
    body.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jul 13, 2010
  3. package-from-filename: Wrap in a `condition-case' to make NOERROR work.

    There was no protection against errors signaled in `package-from-filename', so
    the NOERROR option didn't actually do anything. This commit wraps some of the
    body in a `condition-case' to ensure nil is returned when NOERROR is non-nil.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jul 13, 2010
  4. package-test: Add :adapted-by keyword to expected slots.

    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jul 13, 2010
  5. package-test: Update expectations of :required slot format.

    It will typically be a list of two elements, the hard and soft requirements.
    Either one of these can be nil, and if the second is nil, it should be present.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jul 13, 2010
  6. package-from-version-1: Correctly construct a package structure.

    After the `elx' rebasing, the :requires-hard slot no longer exists, so use the
    :required slot instead.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jul 13, 2010
  7. package-split-filename: Obey NOERROR argument if version is invalid.

    Check the version computed from the filename using `version-to-list', and if
    that fails, then signal an error or return `nil', depending on the value of
    NOERROR.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jul 13, 2010
  8. package.el: Documentation fixes.

    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jul 13, 2010
Commits on Jun 30, 2010
  1. package-split-filename: Return raw strings from filename.

    This allows assignment to the :version-raw slot of package structures. Since
    some info is lost in `version-to-list', we want to be able to avoid losing
    information when creating a package structure.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 29, 2010
  2. make-package: Add `adapted-by' slot to match new elx.

    elx is now able to extract an `adapted-by' attribute, so allow that in package
    structures.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 29, 2010
Commits on Jun 29, 2010
  1. package-from-single-buffer: Remove use of `inherit-package'.

    It was done away with after getting rid of the `elx-pkg' structure.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 29, 2010
  2. package-find: Update keywords to current slot names.

    With the merging of the new `elx' version, use the new slot names "provided" and
    "required" rather than "provides" and "requires".
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 29, 2010
Commits on Jun 23, 2010
  1. make-package: Change `provides' slot to `provided'.

    This matches what `elx-package-metadata' returns.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 23, 2010
  2. package-test: Update to use `package-required' form.

    The arguments to `make-package' changed with the elx merge, so the tests need to
    be updated.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 23, 2010
  3. package-required-hard: Use correct offset.

    It incorrectly returned the soft-requires rather than the hard ones.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 23, 2010
  4. make-package: Don't inherit from elx-pkg.

    The elx library no longer provides its own package structure, so define all of
    the slots ourselves. Also, it returns the `required' property as a list of
    (REQUIRED-HARD REQUIRED-SOFT), so provide a pair of convenience functions for
    getting at the individual values.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 23, 2010
  5. Doc updates for version 1.9.0.

    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 23, 2010
Commits on Jun 21, 2010
  1. package-initialize: Register from archives first.

    Register packages from the archives before registering installed or activated
    packages. This ensures that packages will have the correct status, since all
    packages in the archive will be listed as `available'. By registering the
    archive contents first, the status of installed and activated packages is
    overwritten with the correct value.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  2. package-install-internal: Simplify `package-install'.

    Separated interactive spec of `package-install' to its own function, with the
    actual handling done in the new `package-install-internal'.
    
    Also, make use of `package-find-rest' to eliminate a lot of redundancy.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  3. package-register-all-archive-contents: Skip unreadable archives.

    Skip archives which do not have readable contents. If error reporting for
    missing archive information is desired, it should be placed elsewhere.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  4. package-do-activate: Make sure package is marked as `activated'.

    The package was activated, but this was not reflected in `package-registry', so
    updating the package buffer did not properly show the status of the package.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
Commits on Jun 20, 2010
  1. package-test: Make "tarty" package `available' by default.

    It's status shouldn't change to `activated' until it actually has been
    activated.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  2. package-register-all-installed: More tests.

    Also, remove duplicated check of the resulting package in the inner loop.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  3. package-from-file: Pull additional info from `package-from-filename'.

    Originally, `package-from-file' did not consider the name of the file when
    reading information, only the contents of the file. Some useful information,
    like the name of the package and its archive, are typically only available in
    the file name. Try to pick up as much of this information as is available.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  4. package-from-single-file: Change implementation.

    Rather than using `with-temp-buffer', use `find-file-noselect' and
    `kill-buffer'. It's really only stylistic.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  5. package-from-filename: Try both FILE and its parent dir.

    Allow `package-from-filename' to accept either a directory, such as
    "/path/to/dir/package-1.2.3/" or a filename within that directory, such as
    "/path/to/dir/package-1.2.3/package.el".
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  6. package-install-from-buffer: Don't run `package-initialize'.

    Avoid running a full initialization after a simple install.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  7. package-install: Don't do a complete `package-initialize'.

    There isn't a reason why a full initialization needs to be run after installing
    each individual package. This also avoids problems with archive setup, since
    initialization reads the archive contents, but simple activation does not.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  8. package-test: Use `upstream-archive-contents' to reduce redundancy.

    The same string was used a few times; remove that redundancy.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  9. package-download: Update downloaded package status to `installed'.

    Once the package has been downloaded, make sure to mark it as installed.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
  10. package-register: Improve status de-duplication.

    If a package with a new status is registered, make sure to update its entry in
    `package-registry'.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 20, 2010
Commits on Jun 17, 2010
  1. package-register: Mark packages as `available' by default.

    If the package doesn't specify a status, consider it `available'.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 17, 2010
  2. package-register: Fix doubly-registered packages.

    If a package is both installed and available in an archive, it was added to the
    registry twice. This patch solves that problem.
    
    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 17, 2010
  3. package-statuses: Change abbreviation of `activated' status.

    Signed-off-by: Dan Hackney <dan@haxney.org>
    committed Jun 17, 2010
Something went wrong with that request. Please try again.