Commit Graph

123 Commits

Author SHA1 Message Date
Patrick Uiterwijk
58fcfbaca2 Remove the namespace from dist-git.conf so namespaced lookaside becomes possible
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-10-28 01:40:32 +02:00
Kevin Fenzi
40a7012c75 add highlighting for cgit on pkgs. ticket 6333 2017-09-12 01:50:43 +00:00
Kevin Fenzi
df6a521a6f bring cgit back for now until pagure can do rss/atom, show all namespaces, etc 2017-09-03 21:37:14 +00:00
Patrick Uiterwijk
3fbc71a614 Fix lookaside uploading until we can fix for realsies
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-08-09 23:47:47 +02:00
Patrick Uiterwijk
970c78b619 Fix git@ service in pkgs02
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-08-09 03:01:27 +02:00
Pierre-Yves Chibon
f2015d75e1 Adjust all the redirects for the disappearance of cgit
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2017-08-03 15:50:40 +02:00
Pierre-Yves Chibon
7180f1669a Move fedmsg-genacls-config.py to a template and configure it for the new world 2017-07-25 15:21:00 +02:00
clime
3fc69696b9 dist-git: clean up unused files and the main script 2017-07-13 21:36:07 +02:00
Brandon Gray
5de4b9a026 remove unused setup_git_package from distgit role 2017-07-13 21:22:57 +02:00
clime
cc29d3ed65 pkgs-stg: employ the dist-git package setup_git_package and mkbranch scripts 2017-05-22 09:25:39 +02:00
clime
17c52a6e59 dist-git: the new upstream dist-git package is now in EPEL7 2017-05-03 11:00:10 +02:00
Patrick Uiterwijk
9ef64fde7b This is renamed to container
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-04-12 17:50:45 +00:00
clime
b09633d23c use devel dist-git upstream 2017-02-14 16:04:38 +01:00
Kevin Fenzi
1db5d40fd8 tweak cgit for new pkgs->src redirect 2016-12-14 04:21:54 +00:00
Kevin Fenzi
9d00a8056b allow pkgs to do https clones of rpms repos 2016-12-12 22:26:21 +00:00
Pierre-Yves Chibon
4b29b6ff18 Migrate all the redirect rules from http://pkgs to https://src 2016-12-12 13:48:11 +01:00
Ralph Bean
b7941a75c5 Also, make cgit redirects aware of the new test-* namespaces. 2016-12-01 15:23:33 +00:00
Pierre-Yves Chibon
4e153f8912 Rename the hook post-receive-secondaryarch into post-receive-alternativearch 2016-10-28 10:59:16 +02:00
Pierre-Yves Chibon
8f04f6fa73 Add and install the secondary arch git hook
This hook is meant to notify secondary arch people about changes made to
packages that involves: ExclusiveArch or ExcludesArch.
2016-10-28 10:59:16 +02:00
Patrick Uiterwijk
6fad69aca7 Allow GSSAPI for lookaside
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-10-14 20:37:57 +00:00
Patrick Uiterwijk
f1dd7a7432 Unify all ssl cipher suite configurations
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-08-31 19:28:26 +00:00
Till Maas
25a4bd15ec Make dist-git-upload.cgi PEP8 compliant
Signed-off-by: Till Maas <opensource@till.name>
2016-05-17 20:04:52 +00:00
Ralph Bean
3c70c9aa82 Add modules here. 2016-04-12 15:35:58 +00:00
Ralph Bean
3310672c58 Tell selinux to allow git-daemon to follow symlinks, please. 2016-03-21 16:03:12 +00:00
Pierre-Yves Chibon
5c246f5ffd Add a new mkbranch script to be used only for mass-branching 2016-02-23 16:18:20 +01:00
Ralph Bean
7ae1df78b3 A regex that doesn't rely on '.git'. 2016-01-05 21:53:35 +00:00
Ralph Bean
cc0089049f Redirect old cgit repo urls to the new namespace. 2016-01-05 21:31:14 +00:00
Kevin Fenzi
d7978f9eec Fix duplicate entries in cgit due to namespace changes. 2016-01-02 17:25:15 +00:00
Ralph Bean
b581e4a6f9 Use the gitolite Alias feature in staging. 2015-12-22 17:37:06 +00:00
Ralph Bean
a57d418bfb Make gitolite.rc a template. 2015-12-22 16:49:28 +00:00
Pierre-Yves Chibon
5b6ce80a6b Move rpms to repositories on all scripts 2015-12-21 11:22:25 +01:00
Patrick Uiterwijk
4ec8ff4264 Publish the full list of git repos
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-12-18 00:50:29 +00:00
Ralph Bean
2bca286974 Make genacls.sh a template. 2015-12-17 21:54:17 +00:00
Pierre-Yves Chibon
9908aa99fe Point dist-git's cgit to the real deal 2015-12-17 16:36:15 +01:00
Pierre-Yves Chibon
e5fa3f7374 Point to /srv/git/repositories as this is both backward and forward compatible
And adjust the documentation to mkbranch
2015-12-11 13:44:18 +01:00
Mathieu Bridon
af02e32085 distgit: Ensure the hardlinked sources all belong to apache
Without this, client uploads and downloads aren't working any more.
2015-07-15 17:20:35 +02:00
Mathieu Bridon
3ff24f67b2 distgit: Generators don't have a length
This is fallout from the previous commit.
2015-07-13 23:03:44 +02:00
Mathieu Bridon
a11c53cb4d distgit: Harden the hardlink script a bit
Turns out the lookaside cache is not as clean as I expected.

Specifically, it contains some files where we'd expect directories, for
example:

/srv/cache/lookaside/pkgs/GFS-kernel/@13013.1e77f453ba1c86cd7616087d0643bbd8e
/srv/cache/lookaside/pkgs/openswan/tmpLRV5Gn5556cb2fcea6ba862ce14e1debf98b6d

This commit makes the script print an error instead of crashing on an
OSError in such a case.
2015-07-13 22:55:57 +02:00
Mathieu Bridon
e7074e8ad9 distgit: Add a script to make the new paths in the lookaside cache
We are migrating from the following path scheme:
    /%(srpmname)s/%(filename)s/%(hash)s/%(filename)s

To:
    /%(srpmname)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s

As a result, we need to hardlink all the files existing under the old
path to their new path.

This script does just that.

Given that it should only ever be run once anyway, it is added as a
file to the distgit role, but not set to be installed anywhere.
2015-07-13 20:16:30 +00:00
Mathieu Bridon
6ea2c97f74 Add the full traceback to the logs 2015-06-05 18:33:13 +02:00
Mathieu Bridon
c474289e3b distgit: Catch all errors
With this, we should never fail silently any more.
2015-06-05 18:19:05 +02:00
Mathieu Bridon
635611cfb7 distgit: Reuse the same code to create directories
This avoids some race conditions, as testing for a directory existence
before creating it is racy.

The best way is to try creating it no matter what, and ignore errors
when the directory already exists.
2015-06-05 18:19:01 +02:00
Mathieu Bridon
8ecd6b0fd0 distgit: Add some logs when hardlinks are made 2015-06-05 18:18:32 +02:00
Mathieu Bridon
bd10dee3c1 distgit: Simplify forming the fedmsg path 2015-06-05 18:17:35 +02:00
Mathieu Bridon
b3d5bd9d8e distgit: Avoid reupload
The script checks for the file at the new location.

As a result, it will report that the file is missing if it had only been
uploaded to the old location, which will prompt the client to reupload.

With this change, the script will check at the new location, and if it
doesn't find the file it will try checking for it at the old location as
well.

If the file is found at the old location, we hardlink it to the new
location, and report the file is available.
2015-06-05 17:49:53 +02:00
Mathieu Bridon
d6e5e69ebd distgit: Drop unused imports 2015-06-05 17:49:17 +02:00
Patrick Uiterwijk
4b22cd9f2a Update upload_cgi and add cgi-nfs for pkgs
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-06-05 09:02:28 +00:00
Mathieu Bridon
fefea74100 distgit: Properly make the symlink 2015-06-04 18:12:10 +02:00
Mathieu Bridon
9b1e60ece2 distgit: One more case of error handling 2015-06-04 16:11:42 +02:00
Pierre-Yves Chibon
cbeaa9437c Store the new version of the selinux policy for distgit 2015-06-04 09:33:10 +00:00