Permalink
Switch branches/tags
Nothing to show
Commits on Jan 18, 2009
  1. Document some of the more stable classes

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Jan 18, 2009
Commits on Jan 10, 2009
  1. Fix synchronization transactions

    An upgrade transaction was being initialized instead of a sync, meaning
    that libalpm was looking for a local package file, rather than within
    the databases.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Jan 10, 2009
Commits on Jan 9, 2009
  1. Add extra attributes to PMPackage

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Jan 4, 2009
  2. Add NSArray translation methods for alpm_list_t objects with strings

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 28, 2008
  3. Remove unecessary _setFlag: and _unsetFlag: methods in PMTransaction

    These were one-liners and thus were merged into the "higher" level
    _setOrUnsetFlag:dependingOnBool: method.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Jan 9, 2009
  4. Ensure local database is registered prior to transactions

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Jan 9, 2009
Commits on Dec 28, 2008
  1. Add alpm_list_t to NSArray translation categories

    NSArray and NSMutableArray have methods to translate from alpm_list_t
    objects containing pmpkg_t and pmdb_t objects.
    committed Dec 28, 2008
  2. Add private PMPackage init method accepting a pmpkg_t and PMDatabase

    This allows framework classes to directly initialise a PMPackage
    providing the pmpkg_t, as opposed to sending initWithName:fromDatabase:,
    which has to find the pmpkg_t with the specified name.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 28, 2008
  3. Add private -[PMDatabase _database] method

    This method is meant to be in the package scope. It allows other
    classes in the same package to access the pmdb_t in the database
    object. This allows us to remove a lot of unecessary code when
    initializing a PMPackage, and simply use the reference to the pmdb_t
    directly.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 27, 2008
  4. Add private init methods that use native alpm structures

    Private initialisation methods were added to PMDatabase and PMPackage,
    allowing to initialise an object using an alpm structure directly,
    instead of using hacks, such as searching for a package.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 27, 2008
Commits on Dec 27, 2008
  1. Add notifications for refreshing a repository

    PMRepositoryWillRefreshNotification will be posted just before a
    repository is updated, PMRepositoryDidRefreshNotification will be
    posted just after a repository is updated.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 27, 2008
Commits on Dec 26, 2008
  1. Add -[PMTransaction interrupt] method

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 26, 2008
  2. Add -[PMPackage isInstalled] method

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 26, 2008
  3. Change servers property to method to be compatible with GNUstep

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 26, 2008
  4. Add some documentation for the new initialization methods

    The interface of -[PMPackage initWithcontentsOfURL:] and
    -[PMPackage initWithcontentsOfFile:] is not likely to change, so it
    might as well be documented now.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 26, 2008
Commits on Dec 23, 2008
  1. Fix adding servers to a repository

    The path of the URL was being added, instead of the whole url (include
    scheme and host)
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 23, 2008
  2. Add logging in Debug target

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 23, 2008
Commits on Dec 22, 2008
  1. Add support for initialising a PMPackage from a file or URL

    Packages can be initialised from a url (http, ftp or file) using
    -[PMPackage initWithContentsOfURL], and from a file using -[PMPackage
    initWithContentsOfFile]. If URL is a file these two methods function the
    same.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 22, 2008
  2. Fix initialisation of PMPackage

    First of all the node was being set to the next node before its data was
    used, thus causing problems for the last node. Second of all the name of
    db was being retrieved, while db was not initialised, instead of using
    tmpdb.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 22, 2008
  3. Add methods for registering repositories with PMPackageManager

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 22, 2008
Commits on Dec 19, 2008
  1. Fix INSTALL_NAME to "@rpath" (Only supported in Mac OS 10.5)

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 19, 2008
  2. Add -Wall to flags and suppress uknown pragma warnings

    Xcode uses "#pragma mark" to separate sections, we don't want to stop
    the compilation process because of that.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 19, 2008
  3. Add GNUmakefile for GNUstep

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 19, 2008
  4. Flatten directory structure in preperation for the GNUmakefile

    GNUstep Makefiles seem to prefer flat directory structures.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 19, 2008
  5. Make compatible with standard GCC (for GNUstep)

    Standard GCC does not support Objective-C 2.0 features such as
    properties, the package scope and fast enumeration.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 18, 2008
Commits on Dec 16, 2008
  1. Add PMPackageManager class

    This class is equivalent to a wrapper around alpm's pmhandle_t
    structure. Its main role is to initialize, configure and release
    libalpm.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 16, 2008
  2. Add PMTransaction class

    committed Dec 16, 2008
  3. Add PMLocalDatabase class

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 15, 2008
  4. Add a method for retrieving a package from a database, given a name

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 15, 2008
  5. Add debugging information for adding a server to a database

    alpm_db_setserver() only returns -1 when the database was not found in
    the list of registered databases. Since this is guaranteed not to be the
    case we can assert that the function call will return 0 for debugging
    purposes.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 15, 2008
  6. Add Xcode project files

    The framework currently only links against libalpm in /usr/local/lib.
    This means that users must install libalpm on their systems in order for
    this framework to function. This should be fixed later so that the
    framework is relocatable.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 15, 2008
  7. Add PMRepository class

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    
    The sync transaction does not appear to be necessary or even relevant to
    refreshing a database. Pacman code confirms this.
    
    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 14, 2008
  8. Add PMPackage and PMDatabase classes

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 14, 2008
Commits on Dec 14, 2008
  1. Add README.md and LICENSE

    Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
    committed Dec 14, 2008