Commit Graph

5131 Commits

Author SHA1 Message Date
Fatih Aşıcı 1ce5b914e1 index: Add support for new filename format of delta packages
Also store release numbers instead of build numbers.
2010-10-06 10:53:58 +00:00
Fatih Aşıcı d11c1eba07 util: Fix returned value 2010-10-06 10:53:57 +00:00
Fatih Aşıcı e3e13b941f build: Change filename format of delta packages
The new format is:

    <name>-<source release>-<target release>-<distribution id>-<architecture>.delta.pisi

    e.g. pisi-179-180-p11-x86_64.pisi

Release numbers are used instead of build numbers.
2010-10-06 10:53:56 +00:00
Fatih Aşıcı 24a9a97d59 util: Add support for parsing the upcoming delta package name format
This also adds utility functions to split fields of new filename format.
2010-10-06 10:53:55 +00:00
Fatih Aşıcı b713d35a65 build: Change filename format of packages
The new format is:

    <name>-<version>-<release>-<distribution id>-<architecture>.pisi

    e.g. pisi-2.3.2-180-p11-x86_64.pisi

We will not use build numbers any more. This commit removes some of the code
related to build numbers. New pisi will not deal with build numbers.
Before the stable release, all buildno-related code will be removed.

It is now possible to use digits after a dash character (e.g. polkit-qt-1).

Distribution id is a short string to represent the distribution release
(e.g. p11 for Pardus 2011).

Architecture strings cannot start with a digit. This is needed to
distinguish old and new packages.
2010-10-06 10:53:53 +00:00
Fatih Aşıcı d237b88bc6 util: Add support for parsing the upcoming package name format 2010-10-06 10:53:52 +00:00
Fatih Aşıcı 101ee48813 tests: Replace the path with __file__ in testCanAccessFile
Otherwise, the result of the test is dependent on the installed
packages.
2010-10-01 08:38:28 +00:00
Fatih Aşıcı 9696a5e2d0 config: Just ignore if we can't create the directory 2010-10-01 08:32:17 +00:00
Fatih Aşıcı b13b43f15c build: Call pkg_src_dir() to get WorkDir path
No need to keep a member for source directory.
2010-09-28 11:06:50 +00:00
Fatih Aşıcı 55d3fd2e62 build: Search WorkDir after unpacking sources 2010-09-28 09:31:09 +00:00
Fatih Aşıcı 9c3b99470f install: Do not calculate the sum of cached file twice 2010-09-28 06:21:37 +00:00
Ozan Çağlayan afe5a521f2 actionsapi/kerneltools: Refactor 2010-09-27 08:27:03 +00:00
Fatih Aşıcı cb6071ff65 config: Create directories if we have write access
Also rename util.check_dir to util.ensure_dirs.

BUG:FIXED:14000
2010-09-26 15:23:24 +00:00
Fatih Aşıcı c7c3d36bef cli/build: If spec file is not given, fallback to ./pspec.xml 2010-09-26 13:36:09 +00:00
Fatih Aşıcı d46ce2ac20 installdb: Real fix when Package tag is missing 2010-09-26 11:42:07 +00:00
Fatih Aşıcı 1f22537d0a build: Try WorkDir="." for archives with type "binary" 2010-09-26 11:05:39 +00:00
Fatih Aşıcı d2a84751cc build: Fail if user-defined WorkDir does not exist 2010-09-26 10:52:40 +00:00
Fatih Aşıcı c9f32a7bbc index: Add --compression-types option
With this option, the compression type of index file can be selected.
It is possible to pass multiple types separated by comma.

e.g. pisi index --skip-signing --compression-types=bz2,xz
2010-09-26 10:33:27 +00:00
Fatih Aşıcı 9ca6e16436 file: Handle all compressed files
Now it signs all compressed index files and calculates sums
of them.
2010-09-26 10:33:23 +00:00
Fatih Aşıcı 2453c77206 cli/index: Code style fixes and simplifications
Also remove a redundant info message.
2010-09-26 09:24:16 +00:00
Fatih Aşıcı 2a9909d4a8 file: Modify File class to accept multiple compression types 2010-09-26 09:06:26 +00:00
Fatih Aşıcı f2e13332d8 file: Remove unused gzip enum 2010-09-26 09:06:18 +00:00
Fatih Aşıcı b0ce7f2939 build: Guess WorkDir from archive name
If defined, use WorkDir in actions.py. If it is not defined or the
directory does not exist, first try "srcname-version" then the
basename of archive URL after splitting extensions.
2010-09-25 21:31:19 +00:00
Fatih Aşıcı aab6c1cbdd specfile: Replace "current" string in release/version values
With this feature, it is not necessary to hardcode versions/releases
used in inter-dependencies.

    <RuntimeDependencies>
        <Dependency release="current">xorg-server-common</Dependency>
    </RuntimeDependencies>

The "current" value will be replaced by the release of the source
package that this spec file defines. This is done when building
the package so that binary packages and index files do not include
"current" string.
2010-09-25 20:17:04 +00:00
Fatih Aşıcı 93a755e8dc installdb: Check if some mandatory tags in metadata.xml exist 2010-09-23 07:54:59 +00:00
Fatih Aşıcı b2cfafcabe build: Move build number warning to the end
Otherwise it prints this warning for each sub-package.
2010-09-22 10:51:25 +00:00
Fatih Aşıcı f563c616cc build: Add dependencies of debug packages
Currently, it only adds "foo" dependency to "foo-dbginfo" package.
2010-09-22 09:07:14 +00:00
Gökçen Eraslan 04e0bd121a actionsapi/pisitools: Fix copy/paste typo 2010-09-22 08:39:01 +00:00
Fatih Aşıcı 514f90c3c4 build: Generate a debug package for each sub-package
This commit also changes the behavior when a sub-package does not
contain any files. Such packages will not be built and a warning
will be printed for each empty package.
2010-09-22 08:02:45 +00:00
Fatih Aşıcı f212487d34 specfile: Make package descriptions mandatory again 2010-09-21 13:39:30 +00:00
Fatih Aşıcı 34db2b1918 build: Fix typo in path collision check 2010-09-21 13:25:09 +00:00
Ozan Çağlayan 1313d51205 actionsapi/kerneltools: Don't show section mismatches 2010-09-15 13:09:38 +00:00
Onur Küçük 737649cdf8 rng: Add new locales 2010-09-15 12:18:33 +00:00
Fatih Arslan 53d78d1612 actionsapi/texlivemodules: patterns have to be null string for change
If the key "patterns" do not have any value (null string), than it should be
replaced by "-". But the former condition was not able to catch up those null
strings. The condition has changed to work properly.
2010-09-08 08:36:59 +00:00
Fatih Arslan fe6fc233b8 actionsapi/texlivemodules: Refactor language function, fixes the broken parsing ability
The old language function was not easy to read and understand. Splitting it into two
functions makes it more readable. The code itself is rewritten from scratch. The 
function's parsing ability was by default faulty which has caused to create error .dat 
files.
2010-09-06 12:00:38 +00:00
Gökmen Göksel 2a15227a8c unpisi: Add support to extract packages to a target directory 2010-09-05 20:48:32 +00:00
Fatih Arslan 94c79b6fd6 actionsapi/texlivemodules.py: Fixes logical false result, using shlex for better parsing" 2010-09-01 05:28:21 +00:00
Fatih Arslan 086f10aa9d actionsapi/texlivemodules: Fixes the behaviour of copying and moving of documentation files 2010-08-31 09:19:04 +00:00
Fatih Arslan 0d226cde68 actionsapi/texlivemodules: Modified to work properly with TexLive 2009 version
Texlive 2009 has some significant changes in the source tree. 

-The format.cnf file is created from the information of tlpobj files. This is parsed via
the function addFormat().
-buildFormatFiles() has some enviroment changes.
-The files of the source itself is distributed in the source dir. This must be relocated 
and re-distributed properly. This relocation information is available in the the tlpobj files. 
The function which reads the information and relocate the files is named as  moveSource().
-handleConfigFiles() is rewritten to provide simplicity and readability. Also there is no need of 
parameters, because the prefixes are the same everywhere. 
-The order of the functions has been changed. First config files has to be created, after that it's 
possible to build formats
2010-08-31 07:05:47 +00:00
Gökçen Eraslan 2cac023dfc actionsapi: Add Pardus CFLAGS/CXXFLAGS as qmake parameter instead of make parameter.
If we add flag parameters to make, we totally override flags instead of add them.
2010-08-21 11:49:39 +00:00
Fatih Aşıcı f82b0b5998 archive: Comment a seek call as it causes a problem with Python 2.7
It seems this call is redundant here. No known problems so far.
2010-08-17 12:14:41 +00:00
Gökçen Eraslan f489e54909 actionsapi: Add includedir to qt4 module. 2010-08-17 05:57:59 +00:00
Gökçen Eraslan 1fbcf7ae82 actionsapi: Fix translation dir. 2010-08-17 05:54:15 +00:00
Gökçen Eraslan 4626db0c38 actionsapi: Revert last commit, use upstream names for importdir, translationdir and plugindir. 2010-08-17 05:37:13 +00:00
Gökçen Eraslan c0185af54e actionsapi: Change importdir, plugindir and translationdir to importsdir, pluginsdir and translationsdir for better integrity 2010-08-16 12:51:35 +00:00
Gökçen Eraslan 4aacd1cc65 actionsapi: Add qt4 module to easily compile qmake based Qt packages. 2010-08-16 12:22:18 +00:00
Gökçen Eraslan 6109bfd9d9 actionsapi: Add KDE4 module to easily compile and install cmake based KDE packages. 2010-08-16 12:21:37 +00:00
Gökçen Eraslan 27ad54bc7b actionsapi/cmaketools: Remove Makefile check from cmaketools.install
Developer may add '-C dir' parameter, so we should take this into account.
2010-08-16 07:04:54 +00:00
Gökçen Eraslan 057ea2934a actionsapi/cmaketools: Remove Makefile check
Developer may add '-C dir' parameter, so we should take this into account.
2010-08-16 07:00:57 +00:00
Fatih Aşıcı 9f4c66afa2 actionsapi: Set localstatedir prefix to "/var" 2010-08-06 13:48:12 +00:00