Commit Graph

5197 Commits

Author SHA1 Message Date
Fatih Aşıcı 0a0f3aaba5 build: Create delta packages after build if max_delta_count > 0
build_packages does not return a value any more. Code is really hacky
but works.
2010-10-08 06:55:57 +00:00
Fatih Aşıcı a23bb1272b build: Search old packages in {compiled,debug}_packages_dir too
This is similar to the behaviour before the build number removal except
that it does not search recursively.
2010-10-07 12:23:07 +00:00
Fatih Aşıcı 44c91bde39 build: Do not print error/warning counts if they equal to zero 2010-10-07 08:26:36 +00:00
Fatih Aşıcı c0ec957842 util: Add function to generate a filename from the package info given 2010-10-07 07:15:41 +00:00
Fatih Aşıcı 9d4342bc52 specfile: Ignore build numbers 2010-10-06 22:00:59 +00:00
Fatih Aşıcı 4e3c38e0ab history: Remove buildno-related stuff 2010-10-06 21:54:06 +00:00
Fatih Aşıcı 928ca84a9c packagedb: Ignore build numbers in old formats 2010-10-06 21:31:34 +00:00
Fatih Aşıcı d1b73dd580 installdb: Remove buildno-related stuff 2010-10-06 21:27:37 +00:00
Fatih Aşıcı 4a7d58c51e installdb,cli/listinstalled: Thinko fix
The build host should be an empty string for old packages.
"pisi li -b ''" now returns old packages, too.
2010-10-06 20:53:09 +00:00
Fatih Aşıcı b2514b62cc cli/listinstalled: Replace --without-buildno with --with-build-host
This renamed parameter is used to filter packages by their build host.

  e.g. pisi li -b localhost
2010-10-06 20:33:31 +00:00
Fatih Aşıcı 51a9e580b8 build: Hold an identifier for the host the package is built on
This can be changed using build_host option in pisi.conf. The
default value is "localhost". This can be used to distinguish
buildfarm packages and the packages built by the user.
2010-10-06 20:33:28 +00:00
Fatih Aşıcı bbf1446f0a tree-wide: Remove --ignore-build-no options 2010-10-06 12:02:15 +00:00
Fatih Aşıcı 45b765593a atomicops: Remove build number checks 2010-10-06 10:54:03 +00:00
Fatih Aşıcı 5617871ddd api: Remove the code related to build numbers 2010-10-06 10:54:02 +00:00
Fatih Aşıcı d50c655c72 config: Remove buildno option 2010-10-06 10:54:01 +00:00
Fatih Aşıcı d511c087d2 tree-wide: Fix get_delta() usage 2010-10-06 10:53:59 +00:00
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