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.
This commit is contained in:
Fatih Aşıcı
2010-10-06 10:53:53 +00:00
parent d237b88bc6
commit b713d35a65
6 changed files with 38 additions and 160 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import pisi.context as ctx
class PackageTestCase(unittest.TestCase):
def setUp(self):
unittest.TestCase.setUp(self)
self.pkgName = util.package_name('test','7.1','2',3)
self.pkgName = "test-7.1-2-p11-x86_64.pisi"
def testAddPackage(self):
cur = os.getcwd()