]> git.ipfire.org Git - pakfire.git/commitdiff
Rename some scripts to reflect what they do.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Sep 2011 22:04:02 +0000 (00:04 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Sep 2011 22:04:02 +0000 (00:04 +0200)
Makefile
pakfire/builder.py
pakfire/cli.py
po/pakfire.pot
scripts/pakfire
scripts/pakfire-build2 [deleted symlink]
scripts/pakfire-builder [moved from scripts/pakfire-build with 100% similarity]
setup.py

index cb76fe4097cab5bac049a7cab8a1b474fdc1e95a..29d2cffc8a2abab0772b104235e3efd719171de2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,10 +16,17 @@ clean:
 dist:
        python setup.py sdist
 
+.PHONY: bdist
+bdist:
+       python setup.py bdist
+
 .PHONY: install
 install: po
        python setup.py install --root=$(DESTDIR) --prefix=/usr
 
+       -mkdir -pv $(DESTDIR)/usr/lib/pakfire
+       ln -svf ../../bin/pakfire $(DESTDIR)/usr/lib/pakfire/builder
+
        -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d
        cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf
        cp -vf examples/pakfire.repos.d/* $(DESTDIR)/etc/pakfire.repos.d/
index 7787cb800ee40d0140014a96ae517180b75a67cc..6ea4997dadc91e49745a6b80acaca585a46ddb31 100644 (file)
@@ -541,7 +541,7 @@ class BuildEnviron(object):
                resultdir = self.chrootPath("/result")
 
                # Create the build command, that is executed in the chroot.
-               build_command = ["pakfire-build2", "--offline", "build", pkgfile,
+               build_command = ["/usr/lib/pakfire/builder", "--offline", "build", pkgfile,
                        "--nodeps", "--resultdir=/result",]
 
                try:
index a0355651e6869be1566a64f742a3ca80ca171f37..9b698a56dd51b1f97b77eca2836db38929284017 100644 (file)
@@ -573,7 +573,7 @@ class CliServer(Cli):
                pakfire.repo_create(path, self.args.inputs, **self.pakfire_args)
 
 
-class CliBuilder2(Cli):
+class CliBuilderIntern(Cli):
        def __init__(self):
                self.parser = argparse.ArgumentParser(
                        description = _("Pakfire builder command line interface."),
index 4784c8f3a0afece6d26389afcb42c738eb985c66..3465efc592e199ef85cbfe92ba340ef7795b873f 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-09-10 22:15+0200\n"
+"POT-Creation-Date: 2011-09-24 00:02+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -92,12 +92,12 @@ msgstr ""
 
 #. Package the result.
 #. Make all these little package from the build environment.
-#: ../pakfire/builder.py:697
+#: ../pakfire/builder.py:702
 msgid "Creating packages:"
 msgstr ""
 
 #. Execute the buildscript of this stage.
-#: ../pakfire/builder.py:709
+#: ../pakfire/builder.py:714
 #, python-format
 msgid "Running stage %s:"
 msgstr ""
index 2a742edc82810c4ea0dd8e1fd27bbd53573eed41..eb7eea965866ccf270ce666e2c7dd96db65628d8 100755 (executable)
@@ -32,10 +32,10 @@ except ImportError, e:
        sys.exit(1)
 
 basename2cls = {
-       "pakfire" : Cli,
-       "pakfire-build" : CliBuilder,
-       "pakfire-build2" : CliBuilder2,
-       "pakfire-server" : CliServer,
+       "pakfire"         : Cli,
+       "pakfire-builder" : CliBuilder,
+       "pakfire-server"  : CliServer,
+       "builder"         : CliBuilderIntern,
 }
 
 # Get the basename of the program
diff --git a/scripts/pakfire-build2 b/scripts/pakfire-build2
deleted file mode 120000 (symlink)
index 83bb50a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-pakfire
\ No newline at end of file
index d1dda81efbfdd7e459f24f0066d96cd3f5505921..841b63e74e19f7b0bf598ec8c15f3891c89518da 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -29,8 +29,7 @@ setup(
        ],
        scripts = [
                "scripts/pakfire",
-               "scripts/pakfire-build",
-               "scripts/pakfire-build2",
+               "scripts/pakfire-builder",
                "scripts/pakfire-server",
        ],
        data_files = [