Home Home > GIT Browse > scripts
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
7 daysscripts/tar-up.sh: do not make assumptions about the remote name (bsc#1141488)scriptsOlaf Hering
The script assumed a remote named 'origin' exists. While this is true for cloning a repo with default options, the name of the remote can be easily changed. Also there can be more than one remotes. Extend the script to exclude a branch named 'scripts' in all configured remotes.
2019-07-09scripts/guards: Add missing link.Michal Suchanek
2019-06-05git_sort: add crypto maintainer tree.Michal Suchanek
2019-05-09git-sort: tests: Use --no-gpg-checks in SLE12-SP2 DockerfileBenjamin Poirier
The updated SLE12-SP2 docker image uses a repo that needs --no-gpg-checks for non-interactive usage.
2019-05-09git-sort: Handle new pygit2.discover_repository behaviorBenjamin Poirier
A consequence of pygit2 commit c32ee0c25384 ("Now discover_repository returns None if repo not found").
2019-05-02git-sort: Move mainline remote check to series_sortBenjamin Poirier
git_sort can be used on any git repository. series_sort() OTOH expects the reference repository to be a clone of the mainline Linux kernel repository. Move the warning accordingly and make it an error since further operations would fail. Fixes: 027d52475873 ("scripts: git_sort: Warn about missing upstream repo")
2019-05-02git-sort: Always explicitely handle a pygit2 import errorBenjamin Poirier
As pointed out by Michal Suchanek, the limitation in commit 6d67b1042a73 ("series_sort: Catch pygit2 import failure.") is wrong; given that there is no explicit installation step of the git-sort scripts and that they are "just there" in the kernel-source repository, every user-callable script needs to check that the user followed installation requirements.
2019-05-02git-sort: qcp: Create subdir of quilt's .pc if neededBenjamin Poirier
qcp.py creates a ~refresh file under a subdirectory of quilt's ".pc" directory. If there haven't been other patches applied yet which are in the same subdirectory (ex: "patches.fixes"), that directory does not exist. This situation can also occur in other scenarios when using `rapidquilt`. change qcp to create the directory if needed, instead of failing. Reported-by: Gary Lin <glin@suse.com>
2019-04-29scripts/git_sort/git_sort.py: Add mkp/scsi 5.0/scsi-fixesTakashi Iwai
2019-04-29git-sort: README: Add information about how to report problemsBenjamin Poirier
2019-04-17scripts/bugzilla-create: Set 'Proactive-Upstream-Fix' keywordJoerg Roedel
2019-03-11scripts: git_sort: Warn about missing upstream repoMichal Koutný
I've witnessed several people having misconfigured their remotes and then calling sortig scripts on series.conf results in cryptic error messages like: > Traceback (most recent call last): > File "scripts/git_sort/series_sort.py", line 121, in <module> > sorted_entries = lib.series_sort(index, input_entries) > File "/home/mkoutny/suse/kernel-source-12-sp3/scripts/git_sort/lib.py", line 425, in series_sort > for e in sorted(result[head].items(), key=operator.itemgetter(0))]) > KeyError: None HEAD Add warning when the upstream torvalds/linux remote is not found to give users a clue about the situation.
2019-03-01README: Adjust links to internal wiki.Petr Tesarik
2019-01-27scritps/log2: add patch changes to index before running checks.Takashi Iwai
2019-01-24scripts/bugzilla: use /usr/bin/python3 directlyJeff Mahoney
/usr/bin/env python3 allows the first interpreter in $PATH to be use, which can product unreliable results.
2019-01-23scripts/python/suse_git/header.py: add jsc#\w+-\d+ for Jira referencesJeff Mahoney
With the upcoming switch to Jira for feature tracking, we need to teach the checker about the new tag. Enforcement is still disabled.
2019-01-19git-sort: series_sort: Make "series.conf" the implicit argumentBenjamin Poirier
Similar to series_insert, "series.conf" becomes the default file where to read/write the patch series. In contrast to series_sort, if the input is not a tty and no argument is specified, the old mode is preserved, which is to behave as an stdin/stdout filter. This way, the original usecase of piping all or a subset of series.conf lines through series_sort (for example, in the method described in the script header) remains unchanged.
2019-01-19git-sort: quilt-mode: Fix git_sort.py pathBenjamin Poirier
Commit e5655f63f99c ("git-sort: Remove tools not related to series_sort") removed the "git-sort" symlink but did not update quilt-mode.sh to use the direct path to git_sort.py.
2019-01-15tar-up.sh: do not copy files ending with ~Michal Suchanek
2018-12-28check-patchhdr: Remove "slightly strange pattern"Benjamin Poirier
Make fuller use of the unittest API: * use assertRaises when testing exceptions * use assertEqual when testing for equality * reorder arguments to (expected value, actual value) when testing for equality, for more intuitive output in case of failure * use unittest.skip instead of commenting out tests
2018-12-21git-sort: Add license textBenjamin Poirier
2018-12-21git-sort: Remove tools not related to series_sortBenjamin Poirier
Some scripts were copied over from the ksapply repository but are not needed for git-sort, series_sort or quilt-mode. In preparation for moving the series_sort code to its own repository, remove these scripts. They can still be found in the ksapply repository: https://gitlab.suse.de/benjamin_poirier/ksapply
2018-12-21scripts: Run pre-commit checks only once when splitting changes into ↵Benjamin Poirier
multiple commits Instead of repeating the series_sort check for each patch, we can do the check once at the beginning, which saves time. Same goes for the other checks part of the pre-commit hook.
2018-12-20scripts/sequence-patch.sh: Add --rapid optionMichal Srb
It uses rapidquilt to apply patches.
2018-12-13git_sort.py: Remove non-existent remote tj/libataMichal Suchanek
2018-12-03run_oldconfig - crosscompileMichal Kubecek
2018-11-30scripts/log2: add --no-edit argument.Michal Suchanek
2018-11-09scripts/git_sort/README.md: Add update_clone.py documentationBenjamin Poirier
2018-11-05Merge branch 'users/jslaby/scripts/for-next' of ↵Michal Suchanek
kerncvs.suse.de:/srv/git/kernel-source into scripts
2018-11-05scripts/lib/SUSE/MyBS.pm: new osc stores oscrc in .configJiri Slaby
So enumerate both possibilities before giving up.
2018-11-04scripts: use syncconfig instead of silentoldconfig where availableMichal Kubecek
Since mainline commit 0085b4191f3e ("kconfig: remove silentoldconfig target"), "make silentoldconfig" can be no longer used. Use "make syncconfig" instead if available.
2018-10-29git_sort.py: Add drm-misc-next to list of repos/branchesThomas Zimmermann
DRM fixes occationally go from drm-misc-next directly into linux-next without the intermediate step of drm-next. Support for drm-misc-next is required by several recent commits.
2018-10-29git_sort.py: Remove trailing whitespaceThomas Zimmermann
2018-10-18scripts/series2git: Strip [PATCH] prefix in the subject lineTakashi Iwai
This makes the commit a bit more similar to the original change.
2018-10-12README: Update documentation wrt. Patch-mainlineThomas Zimmermann
Common practice is to set Patch-mainline to a Linux release tag. More than 95% of all patches follow this convention. The remaining 5% have been fixed accordingly in SLE15. The README file is inconsistent wrt. to the content of Patch-mainline. In some places it refers to a release tag, in others it refers to a version number. With this cleanup, it refers to release tags everywhere. This change is a follow-up for commit 1d81d2699cd3.
2018-10-12README: Clean-up trailing whitespaceThomas Zimmermann
2018-10-12Update documentation wrt. Patch-mainlineThomas Zimmermann
Common practice is to set Patch-mainline to a Linux release tag. More than 95% of all patches follow this convention. The remaining 5% have been fixed accordingly in SLE15. The documentation is inconsistent wrt. to the content of Patch-mainline. In some places it refers to a release tag, in others it refers to a version number. With this cleanup, documentation in scripts/ refers to release tags. This change is a follow-up for commit 1d81d2699cd3.
2018-10-01tar-up.sh: allow packaging multiple architectures.Michal Suchanek
tar-up.sh has -a option to generate package for a particular architecture. Extend the -a option processing to accept comma separated list of architectures. Also fix a bug with ppc64 selecting both ppc64 and ppc64le.
2018-09-11scripts/tar-up.sh: Don't package gitlog-excludes fileTakashi Iwai
Also fix the evaluation of gitlog-excludes file, too
2018-09-11scripts: sequence-patch.sh: Use '_' to replace '#' charactor (bsc#1107937)Qu Wenruo
The pound char ('#') could cause kernel "make prepare" failure if toolchain contains latest automake (1.15). "make prepare" wil fail like: $ LANG=C make modules_prepare [snip] CALL scripts/checksyscalls.sh DESCEND objtool HOSTCC /home/adam/btrfs/suse/kernel-source/tmp/linux-4.12-bsc#123456/tools/objtool/fixdep.o HOSTLD /home/adam/btrfs/suse/kernel-source/tmp/linux-4.12-bsc#123456/tools/objtool/fixdep-in.o LINK /home/adam/btrfs/suse/kernel-source/tmp/linux-4.12-bsc#123456/tools/objtool/fixdep /home/adam/btrfs/suse/kernel-source/tmp/linux-4.12-bsc#123456/tools/objtool/.fixdep-in.o.cmd:1: *** missing separator. Stop. make[4]: *** [Makefile:42: /home/adam/btrfs/suse/kernel-source/tmp/linux-4.12-bsc#123456/tools/objtool/fixdep-in.o] Error 2 make[3]: *** [/home/adam/btrfs/suse/kernel-source/tmp/linux-4.12-bsc#123456/tools/build/Makefile.include:4: fixdep] Error 2 make[2]: *** [Makefile:52: /home/adam/btrfs/suse/kernel-source/tmp/linux-4.12-bsc#123456/tools/objtool/libsubcmd.a] Error 2 make[1]: *** [Makefile:61: objtool] Error 2 make: *** [Makefile:1689: tools/objtool] Error 2 The cause is latest make will consider pound char as a separator. Kernel has some fixes for it: 9feeb638cde0 ("tools build: fix # escaping in .cmd files for future Make") 9564a8cf422d ("Kbuild: fix # escaping in .cmd files for future Make") But backporting those 2 fixes can't solve the problem if the kernel path contains '#'. Considering how common we name the branch using bsc#123456, it would definitely cause problem if using some rolling release distributions. Fix the $TAG variable by replacing the '#' to '_', so we won't need to bother the problem. Signed-off-by: Qu Wenruo <wqu@suse.com>
2018-08-28scripts/sequence-patch.sh: use kernel-azure instead of kernel-defaultOlaf Hering
2018-08-23git-sort: Run tests under SLE15Benjamin Poirier
2018-08-23git-sort: Run tests under openSUSE Leap 15.0Benjamin Poirier
2018-08-23git-sort: Update sle12-sp3 docker image nameBenjamin Poirier
name changed, most likely as a result of the recent changes to registry.suse.de
2018-08-23git-sort: Update openSUSE docker image namesBenjamin Poirier
The "opensuse" project "has been deprecated in favor of the opensuse/leap and opensuse/tumbleweed images provided and maintained by the openSUSE Project release team". [https://store.docker.com/images/opensuse]
2018-08-23scripts/git_sort/patch.py: Fix detection of patch header endBenjamin Poirier
Consider linux commit 1e047eaab3bb ("block/loop: fix deadlock after loop_set_status"), some lines from the log start with "---" but do not mark the end of the patch header. Fix the pattern matching to match what is done in quilt. Also add a test which triggers the issue.
2018-08-23scripts/git_sort/qcp.py: Print info message on stdoutBenjamin Poirier
2018-08-23scripts/git_sort/series_conf.py: Fix Patch parameterBenjamin Poirier
Fixes: e68bd465cdc4 ("git-sort: Rewrite Patch class to read bytes instead of str")
2018-08-23scripts/git_sort/git_sort.py: Remove dead codeBenjamin Poirier
2018-08-22scripts/git_sort/git_sort.py: add libnvdimm-for-next branchJohannes Thumshirn